abstract protected function RouteSubscriberBase::alterRoutes in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Routing/RouteSubscriberBase.php \Drupal\Core\Routing\RouteSubscriberBase::alterRoutes()
Alters existing routes for a specific collection.
Parameters
\Symfony\Component\Routing\RouteCollection $collection: The route collection for adding routes.
1 call to RouteSubscriberBase::alterRoutes()
- RouteSubscriberBase::onAlterRoutes in core/
lib/ Drupal/ Core/ Routing/ RouteSubscriberBase.php - Delegates the route altering to self::alterRoutes().
13 methods override RouteSubscriberBase::alterRoutes()
- AdminRouteSubscriber::alterRoutes in core/
modules/ system/ src/ EventSubscriber/ AdminRouteSubscriber.php - Alters existing routes for a specific collection.
- ContentModerationRouteSubscriber::alterRoutes in core/
modules/ content_moderation/ src/ Routing/ ContentModerationRouteSubscriber.php - Alters existing routes for a specific collection.
- ContentTranslationRouteSubscriber::alterRoutes in core/
modules/ content_translation/ src/ Routing/ ContentTranslationRouteSubscriber.php - Alters existing routes for a specific collection.
- ModuleRouteSubscriber::alterRoutes in core/
lib/ Drupal/ Core/ EventSubscriber/ ModuleRouteSubscriber.php - Alters existing routes for a specific collection.
- NodeAdminRouteSubscriber::alterRoutes in core/
modules/ node/ src/ EventSubscriber/ NodeAdminRouteSubscriber.php - Alters existing routes for a specific collection.
File
- core/
lib/ Drupal/ Core/ Routing/ RouteSubscriberBase.php, line 19
Class
- RouteSubscriberBase
- Provides a base implementation for RouteSubscriber.
Namespace
Drupal\Core\RoutingCode
protected abstract function alterRoutes(RouteCollection $collection);