protected function RouteSubscriber::alterRoutes in Fast Permissions Administration 3.0.x
Same name and namespace in other branches
- 8.2 src/Routing/RouteSubscriber.php \Drupal\fpa\Routing\RouteSubscriber::alterRoutes()
Alters existing routes for a specific collection.
Parameters
\Symfony\Component\Routing\RouteCollection $collection: The route collection for adding routes.
Overrides RouteSubscriberBase::alterRoutes
File
- src/
Routing/ RouteSubscriber.php, line 16
Class
- RouteSubscriber
- Listens to the dynamic route events.
Namespace
Drupal\fpa\RoutingCode
protected function alterRoutes(RouteCollection $collection) {
$route = $collection
->get('user.admin_permissions');
if ($route) {
$route
->setDefaults([
'_title' => 'Permissions',
'_controller' => '\\Drupal\\fpa\\Controller\\FPAController::permissionsList',
]);
}
}