protected function Route::alterRoutes in Open Social 8.6
Same name in this branch
- 8.6 modules/custom/social_gdpr/src/Subscriber/Route.php \Drupal\social_gdpr\Subscriber\Route::alterRoutes()
- 8.6 modules/social_features/social_group/modules/social_group_flexible_group/src/Subscriber/Route.php \Drupal\social_group_flexible_group\Subscriber\Route::alterRoutes()
Same name and namespace in other branches
- 8.9 modules/custom/social_gdpr/src/Subscriber/Route.php \Drupal\social_gdpr\Subscriber\Route::alterRoutes()
- 8.2 modules/custom/social_gdpr/src/Subscriber/Route.php \Drupal\social_gdpr\Subscriber\Route::alterRoutes()
- 8.3 modules/custom/social_gdpr/src/Subscriber/Route.php \Drupal\social_gdpr\Subscriber\Route::alterRoutes()
- 8.4 modules/custom/social_gdpr/src/Subscriber/Route.php \Drupal\social_gdpr\Subscriber\Route::alterRoutes()
- 8.5 modules/custom/social_gdpr/src/Subscriber/Route.php \Drupal\social_gdpr\Subscriber\Route::alterRoutes()
- 8.7 modules/custom/social_gdpr/src/Subscriber/Route.php \Drupal\social_gdpr\Subscriber\Route::alterRoutes()
- 8.8 modules/custom/social_gdpr/src/Subscriber/Route.php \Drupal\social_gdpr\Subscriber\Route::alterRoutes()
- 10.0.x modules/custom/social_gdpr/src/Subscriber/Route.php \Drupal\social_gdpr\Subscriber\Route::alterRoutes()
- 10.1.x modules/custom/social_gdpr/src/Subscriber/Route.php \Drupal\social_gdpr\Subscriber\Route::alterRoutes()
Alters existing routes for a specific collection.
Parameters
\Symfony\Component\Routing\RouteCollection $collection: The route collection for adding routes.
Overrides RouteSubscriberBase::alterRoutes
File
- modules/
custom/ social_gdpr/ src/ Subscriber/ Route.php, line 18
Class
- Route
- Class Route.
Namespace
Drupal\social_gdpr\SubscriberCode
protected function alterRoutes(RouteCollection $collection) {
if ($route = $collection
->get('data_policy.data_policy')) {
$route
->setRequirement('_custom_access', '\\Drupal\\social_gdpr\\Controller\\DataPolicy::entityOverviewAccess');
}
}