class Route in Open Social 8.2
Same name and namespace in other branches
- 8.9 modules/custom/social_gdpr/src/Subscriber/Route.php \Drupal\social_gdpr\Subscriber\Route
- 8.3 modules/custom/social_gdpr/src/Subscriber/Route.php \Drupal\social_gdpr\Subscriber\Route
- 8.4 modules/custom/social_gdpr/src/Subscriber/Route.php \Drupal\social_gdpr\Subscriber\Route
- 8.5 modules/custom/social_gdpr/src/Subscriber/Route.php \Drupal\social_gdpr\Subscriber\Route
- 8.6 modules/custom/social_gdpr/src/Subscriber/Route.php \Drupal\social_gdpr\Subscriber\Route
- 8.7 modules/custom/social_gdpr/src/Subscriber/Route.php \Drupal\social_gdpr\Subscriber\Route
- 8.8 modules/custom/social_gdpr/src/Subscriber/Route.php \Drupal\social_gdpr\Subscriber\Route
- 10.0.x modules/custom/social_gdpr/src/Subscriber/Route.php \Drupal\social_gdpr\Subscriber\Route
- 10.1.x modules/custom/social_gdpr/src/Subscriber/Route.php \Drupal\social_gdpr\Subscriber\Route
Class Route.
@package Drupal\social_gdpr\Subscriber
Hierarchy
- class \Drupal\Core\Routing\RouteSubscriberBase implements \Symfony\Component\EventDispatcher\EventSubscriberInterface
- class \Drupal\social_gdpr\Subscriber\Route
Expanded class hierarchy of Route
1 string reference to 'Route'
- social_gdpr.services.yml in modules/
custom/ social_gdpr/ social_gdpr.services.yml - modules/custom/social_gdpr/social_gdpr.services.yml
1 service uses Route
- social_gdpr.route_subscriber in modules/
custom/ social_gdpr/ social_gdpr.services.yml - Drupal\social_gdpr\Subscriber\Route
File
- modules/
custom/ social_gdpr/ src/ Subscriber/ Route.php, line 13
Namespace
Drupal\social_gdpr\SubscriberView source
class Route extends RouteSubscriberBase {
/**
* {@inheritdoc}
*/
protected function alterRoutes(RouteCollection $collection) {
if ($route = $collection
->get('data_policy.data_policy')) {
$route
->setRequirement('_custom_access', '\\Drupal\\social_gdpr\\Controller\\DataPolicy::entityOverviewAccess');
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Route:: |
protected | function |
Alters existing routes for a specific collection. Overrides RouteSubscriberBase:: |
|
RouteSubscriberBase:: |
public static | function | Returns an array of event names this subscriber wants to listen to. | 5 |
RouteSubscriberBase:: |
public | function | Delegates the route altering to self::alterRoutes(). | 1 |