$row['links'
]['permissions'
] =
[ '#type' => 'link',
'#title' =>
$this->
t('Permissions <span class="visually-hidden">for @module</span>',
['@module' =>
$module->info
['name'
]]),
'#url' => Url::
fromRoute('user.admin_permissions.module',
['modules' =>
$module->
getName()]),
'#options' =>
['attributes' =>
['class' =>
['module-link', 'module-link-permissions'
]]],
];
} // Generate link for module's configuration page, if it has one.
if ($module->status &&
isset($module->info
['configure'
])) { $route_parameters =
$module->info
['configure_parameters'
] ??
[];
if ($this->accessManager->
checkNamedRoute($module->info
['configure'
],
$route_parameters,
$this->currentUser
)) { $row['links'
]['configure'
] =
[ '#type' => 'link',
'#title' =>
$this->
t('Configure <span class="visually-hidden">@module</span>',
['@module' =>
$module->info
['name'
]]),
'#url' => Url::
fromRoute($module->info
['configure'
],
$route_parameters),
'#options' =>
[ 'attributes' =>
[ 'class' =>
['module-link', 'module-link-configure'
],
],
],
];
} }