protected function RouteSubscriber::alterRoutes in Fast Permissions Administration 8.2
Same name and namespace in other branches
- 3.0.x 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 20 - Contains \Drupal\fpa\Routing\RouteSubscriber.
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',
]);
}
}