namespace Drupal\Core\Routing

Same name in other branches
  1. 11.x Drupal\Core\Routing
  2. 9 Drupal\Core\Routing
  3. 8.9.x Drupal\Core\Routing
Object name File name Summary
AccessAwareRouter core/lib/Drupal/Core/Routing/AccessAwareRouter.php A router class for Drupal with access check and upcasting.
CacheableRouteProviderInterface core/lib/Drupal/Core/Routing/CacheableRouteProviderInterface.php Extends the router provider interface to provide caching support.
CurrentRouteMatch core/lib/Drupal/Core/Routing/CurrentRouteMatch.php Default object for current_route_match service.
EnhancerInterface core/lib/Drupal/Core/Routing/EnhancerInterface.php A route enhance service to determine route enhance rules.
FilterInterface core/lib/Drupal/Core/Routing/FilterInterface.php A route filter service to filter down the collection of route instances.
GeneratorNotInitializedException core/lib/Drupal/Core/Routing/GeneratorNotInitializedException.php Class for exceptions thrown when the generator has not been initialized.
LazyRouteCollection core/lib/Drupal/Core/Routing/LazyRouteCollection.php
MatcherDumper core/lib/Drupal/Core/Routing/MatcherDumper.php Dumps Route information to a database table.
MethodFilter core/lib/Drupal/Core/Routing/MethodFilter.php Filters routes based on the HTTP method.
NullRouteMatch core/lib/Drupal/Core/Routing/NullRouteMatch.php Stub implementation of RouteMatchInterface for when there's no matched route.
PathChangedHelper core/lib/Drupal/Core/Routing/PathChangedHelper.php Provides helper functions for handling path changes.
RedirectDestinationInterface core/lib/Drupal/Core/Routing/RedirectDestinationInterface.php Provides an interface for redirect destinations.
RequestFormatRouteFilter core/lib/Drupal/Core/Routing/RequestFormatRouteFilter.php Provides a route filter, which filters by the request format.
RequestHelper core/lib/Drupal/Core/Routing/RequestHelper.php Provides some helper methods for dealing with the request.
ResettableStackedRouteMatchInterface core/lib/Drupal/Core/Routing/ResettableStackedRouteMatchInterface.php Defines an interface for a resettable stack of route matches.
RouteBuilderInterface core/lib/Drupal/Core/Routing/RouteBuilderInterface.php Rebuilds the route information and dumps it.
RouteBuildEvent core/lib/Drupal/Core/Routing/RouteBuildEvent.php Represents route building information as event.
RouteMatchInterface core/lib/Drupal/Core/Routing/RouteMatchInterface.php Provides an interface for classes representing the result of routing.
RouteObjectInterface core/lib/Drupal/Core/Routing/RouteObjectInterface.php Provides constants used for retrieving matched routes.
RoutePreloader core/lib/Drupal/Core/Routing/RoutePreloader.php Defines a class that can pre-load non-admin routes.
RouteProviderLazyBuilder core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php A Route Provider front-end for all Drupal-stored routes.
Router core/lib/Drupal/Core/Routing/Router.php Router implementation in Drupal.
RoutingEvents core/lib/Drupal/Core/Routing/RoutingEvents.php Contains all events thrown in the core routing component.
UrlGeneratorInterface core/lib/Drupal/Core/Routing/UrlGeneratorInterface.php Defines an interface for generating a URL from a route or system path.
UrlMatcher core/lib/Drupal/Core/Routing/UrlMatcher.php Drupal-specific URL Matcher; handles the Drupal "system path" mapping.

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