function RouteSubscriberBase::alterRoutes

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Routing/RouteSubscriberBase.php \Drupal\Core\Routing\RouteSubscriberBase::alterRoutes()
  2. 10 core/lib/Drupal/Core/Routing/RouteSubscriberBase.php \Drupal\Core\Routing\RouteSubscriberBase::alterRoutes()
  3. 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().
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.

... See full list

File

core/lib/Drupal/Core/Routing/RouteSubscriberBase.php, line 19

Class

RouteSubscriberBase
Provides a base implementation for RouteSubscriber.

Namespace

Drupal\Core\Routing

Code

protected abstract function alterRoutes(RouteCollection $collection);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.