You are here

abstract protected function RouteSubscriberBase::alterRoutes in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Routing/RouteSubscriberBase.php \Drupal\Core\Routing\RouteSubscriberBase::alterRoutes()
  2. 9 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.

5 methods override RouteSubscriberBase::alterRoutes()
AdminRouteSubscriber::alterRoutes in core/modules/system/src/EventSubscriber/AdminRouteSubscriber.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.
RouteSubscriber::alterRoutes in core/modules/config_translation/src/Routing/RouteSubscriber.php
Alters existing routes for a specific collection.
RouteSubscriber::alterRoutes in core/modules/field_ui/src/Routing/RouteSubscriber.php
Alters existing routes for a specific collection.
RouteTestSubscriber::alterRoutes in core/modules/system/tests/modules/router_test_directory/src/RouteTestSubscriber.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\Routing

Code

protected abstract function alterRoutes(RouteCollection $collection);