function RouteSubscriberBase::alterRoutes
Same name in other branches
- 9 core/lib/Drupal/Core/Routing/RouteSubscriberBase.php \Drupal\Core\Routing\RouteSubscriberBase::alterRoutes()
- 8.9.x core/lib/Drupal/Core/Routing/RouteSubscriberBase.php \Drupal\Core\Routing\RouteSubscriberBase::alterRoutes()
- 11.x 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().
18 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.
- MenuLinksetRoutes::alterRoutes in core/
modules/ system/ src/ Routing/ MenuLinksetRoutes.php - Alter routes.
- MigrateDrupalUiRouteSubscriber::alterRoutes in core/
modules/ migrate_drupal_ui/ src/ Routing/ MigrateDrupalUiRouteSubscriber.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);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.