Search for alterRoutes

  1. Search 7.x for alterRoutes
  2. Search 9.5.x for alterRoutes
  3. Search 8.9.x for alterRoutes
  4. Search 10.3.x for alterRoutes
  5. Other projects
Title Object type File name Summary
AdminRouteSubscriber::alterRoutes function core/modules/system/src/EventSubscriber/AdminRouteSubscriber.php Alters existing routes for a specific collection.
AdminRouteSubscriberTest::providerTestAlterRoutes function core/modules/system/tests/src/Unit/Routing/AdminRouteSubscriberTest.php
AdminRouteSubscriberTest::testAlterRoutes function core/modules/system/tests/src/Unit/Routing/AdminRouteSubscriberTest.php @covers ::alterRoutes
@covers ::isHtmlRoute
ContentModerationRouteSubscriber::alterRoutes function core/modules/content_moderation/src/Routing/ContentModerationRouteSubscriber.php Alters existing routes for a specific collection.
ContentTranslationRouteSubscriber::alterRoutes function core/modules/content_translation/src/Routing/ContentTranslationRouteSubscriber.php Alters existing routes for a specific collection.
DisplayRouterInterface::alterRoutes function core/modules/views/src/Plugin/views/display/DisplayRouterInterface.php Alters a collection of routes and replaces definitions to the view.
LayoutBuilderRoutes::onAlterRoutes function core/modules/layout_builder/src/Routing/LayoutBuilderRoutes.php Alters existing routes for a specific collection.
LayoutBuilderRoutesTest::testOnAlterRoutes function core/modules/layout_builder/tests/src/Unit/LayoutBuilderRoutesTest.php @covers ::onAlterRoutes
MenuLinksetRoutes::alterRoutes function core/modules/system/src/Routing/MenuLinksetRoutes.php Alter routes.
MigrateDrupalUiRouteSubscriber::alterRoutes function core/modules/migrate_drupal_ui/src/Routing/MigrateDrupalUiRouteSubscriber.php Alters existing routes for a specific collection.
ModuleRouteSubscriber::alterRoutes function core/lib/Drupal/Core/EventSubscriber/ModuleRouteSubscriber.php Alters existing routes for a specific collection.
NodeAdminRouteSubscriber::alterRoutes function core/modules/node/src/EventSubscriber/NodeAdminRouteSubscriber.php Alters existing routes for a specific collection.
PathPluginBase::alterRoutes function core/modules/views/src/Plugin/views/display/PathPluginBase.php Alters a collection of routes and replaces definitions to the view.
PathPluginBaseTest::testAlterRoutesWithOptionalParameters function core/modules/views/tests/src/Unit/Plugin/display/PathPluginBaseTest.php Tests altering routes with optional parameters in the overridden route.
PathPluginBaseTest::testAlterRoutesWithParameters function core/modules/views/tests/src/Unit/Plugin/display/PathPluginBaseTest.php Tests altering routes with parameters in the overridden route.
PathPluginBaseTest::testAlterRoutesWithParametersAndUpcasting function core/modules/views/tests/src/Unit/Plugin/display/PathPluginBaseTest.php Tests altering routes with parameters and upcasting information.
RoutePreloader::onAlterRoutes function core/lib/Drupal/Core/Routing/RoutePreloader.php Alters existing routes for a specific collection.
RoutePreloaderTest::testOnAlterRoutesWithAdminPathNoAdminRoute function core/tests/Drupal/Tests/Core/Routing/RoutePreloaderTest.php Tests onAlterRoutes with "admin" appearing in the path.
RoutePreloaderTest::testOnAlterRoutesWithAdminRoutes function core/tests/Drupal/Tests/Core/Routing/RoutePreloaderTest.php Tests onAlterRoutes with just admin routes.
RoutePreloaderTest::testOnAlterRoutesWithNonAdminRoutes function core/tests/Drupal/Tests/Core/Routing/RoutePreloaderTest.php Tests onAlterRoutes with admin routes and non admin routes.
RouteSubscriber::alterRoutes function core/modules/workspaces_ui/src/Routing/RouteSubscriber.php Alters existing routes for a specific collection.
RouteSubscriber::alterRoutes function core/modules/serialization/tests/modules/user_route_alter_test/src/Routing/RouteSubscriber.php Alters existing routes for a specific collection.
RouteSubscriber::alterRoutes function core/modules/media/tests/modules/media_test_embed/src/Routing/RouteSubscriber.php Alters existing routes for a specific collection.
RouteSubscriber::alterRoutes function core/modules/block_content/src/Routing/RouteSubscriber.php Alters existing routes for a specific collection.
RouteSubscriber::alterRoutes function core/modules/field_ui/src/Routing/RouteSubscriber.php Alters existing routes for a specific collection.
RouteSubscriber::alterRoutes function core/modules/views/src/EventSubscriber/RouteSubscriber.php Alters existing routes for a specific collection.
RouteSubscriber::alterRoutes function core/modules/node/src/Routing/RouteSubscriber.php Alters existing routes for a specific collection.
RouteSubscriber::alterRoutes function core/modules/media_library/src/Routing/RouteSubscriber.php Alters existing routes for a specific collection.
RouteSubscriber::alterRoutes function core/modules/config_translation/src/Routing/RouteSubscriber.php Alters existing routes for a specific collection.
RouteSubscriberBase::alterRoutes function core/lib/Drupal/Core/Routing/RouteSubscriberBase.php Alters existing routes for a specific collection.
RouteSubscriberBase::onAlterRoutes function core/lib/Drupal/Core/Routing/RouteSubscriberBase.php Delegates the route altering to self::alterRoutes().
RouteSubscriberTest::testOnAlterRoutes function core/modules/views/tests/src/Unit/EventSubscriber/RouteSubscriberTest.php Tests the onAlterRoutes method.
RouteTestSubscriber::alterRoutes function core/modules/system/tests/modules/router_test_directory/src/RouteTestSubscriber.php Alters existing routes for a specific collection.
SpecialAttributesRouteSubscriber::alterRoutes function core/lib/Drupal/Core/EventSubscriber/SpecialAttributesRouteSubscriber.php Alters existing routes for a specific collection.
SpecialAttributesRouteSubscriber::onAlterRoutes function core/lib/Drupal/Core/EventSubscriber/SpecialAttributesRouteSubscriber.php Delegates the route altering to self::alterRoutes().
UpdateRouteSubscriber::alterRoutes function core/modules/update/src/Routing/UpdateRouteSubscriber.php Alters existing routes for a specific collection.

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