function RouteSubscriberBase::alterRoutes
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Routing/RouteSubscriberBase.php \Drupal\Core\Routing\RouteSubscriberBase::alterRoutes()
- 10 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().
3 methods override RouteSubscriberBase::alterRoutes()
- ModuleRouteSubscriber::alterRoutes in core/
lib/ Drupal/ Core/ EventSubscriber/ ModuleRouteSubscriber.php - Alters existing routes for a specific collection.
- RouteSubscriber::alterRoutes in core/
modules/ media/ tests/ modules/ media_test_ckeditor/ src/ Routing/ RouteSubscriber.php - Alters existing routes for a specific collection.
- SpecialAttributesRouteSubscriber::alterRoutes in core/
lib/ Drupal/ Core/ EventSubscriber/ SpecialAttributesRouteSubscriber.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.