RouteSubscriber.php in Fast Permissions Administration 8.2
Same filename and directory in other branches
Contains \Drupal\fpa\Routing\RouteSubscriber.
Namespace
Drupal\fpa\RoutingFile
src/Routing/RouteSubscriber.phpView source
<?php
/**
* @file
* Contains \Drupal\fpa\Routing\RouteSubscriber.
*/
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. |