RouteSubscriber.php in Fast Permissions Administration 3.0.x
Same filename and directory in other branches
Namespace
Drupal\fpa\RoutingFile
src/Routing/RouteSubscriber.phpView source
<?php
namespace Drupal\fpa\Routing;
use Drupal\Core\Routing\RouteSubscriberBase;
use Symfony\Component\Routing\RouteCollection;
/**
* Listens to the dynamic route events.
*/
class RouteSubscriber extends RouteSubscriberBase {
/**
* {@inheritdoc}
*/
protected function alterRoutes(RouteCollection $collection) {
$route = $collection
->get('user.admin_permissions');
if ($route) {
$route
->setDefaults([
'_title' => 'Permissions',
'_controller' => '\\Drupal\\fpa\\Controller\\FPAController::permissionsList',
]);
}
}
}
Classes
Name | Description |
---|---|
RouteSubscriber | Listens to the dynamic route events. |