namespace Drupal\Core\Routing

Same name in other branches
  1. 8.9.x Drupal\Core\Routing
  2. 10 Drupal\Core\Routing
  3. 11.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.
AccessAwareRouterInterface core/lib/Drupal/Core/Routing/AccessAwareRouterInterface.php Interface for a router class for Drupal with access check and upcasting.
AdminContext core/lib/Drupal/Core/Routing/AdminContext.php Provides a helper class to determine whether the route is an admin one.
BcRoute core/lib/Drupal/Core/Routing/BcRoute.php A backwards compatibility route.
CacheableRouteProviderInterface core/lib/Drupal/Core/Routing/CacheableRouteProviderInterface.php Extends the router provider interface to provide caching support.
CacheableSecuredRedirectResponse core/lib/Drupal/Core/Routing/CacheableSecuredRedirectResponse.php Provides a common base class for cacheable safe redirects.
CompiledRoute core/lib/Drupal/Core/Routing/CompiledRoute.php A compiled route contains derived information from a route object.
ContentTypeHeaderMatcher core/lib/Drupal/Core/Routing/ContentTypeHeaderMatcher.php Filters routes based on the HTTP Content-type header.
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
LocalAwareRedirectResponseTrait core/lib/Drupal/Core/Routing/LocalAwareRedirectResponseTrait.php Provides a trait which ensures that a URL is safe to redirect to.
LocalRedirectResponse core/lib/Drupal/Core/Routing/LocalRedirectResponse.php Provides a redirect response which cannot redirect to an external URL.
MatcherDumper core/lib/Drupal/Core/Routing/MatcherDumper.php Dumps Route information to a database table.
MatcherDumperInterface core/lib/Drupal/Core/Routing/MatcherDumperInterface.php Extends the symfony matcher dumper interface with an addRoutes method.
MatchingRouteNotFoundException core/lib/Drupal/Core/Routing/MatchingRouteNotFoundException.php No matching route was found.
MethodFilter core/lib/Drupal/Core/Routing/MethodFilter.php Filters routes based on the HTTP method.
NullGenerator core/lib/Drupal/Core/Routing/NullGenerator.php No-op implementation of a URL Generator, needed for backward compatibility.
NullMatcherDumper core/lib/Drupal/Core/Routing/NullMatcherDumper.php Does not dump Route information.
NullRouteMatch core/lib/Drupal/Core/Routing/NullRouteMatch.php Stub implementation of RouteMatchInterface for when there's no matched route.
PreloadableRouteProviderInterface core/lib/Drupal/Core/Routing/PreloadableRouteProviderInterface.php Extends the router provider interface to pre-load routes.
RedirectDestination core/lib/Drupal/Core/Routing/RedirectDestination.php Provides helpers for redirect destinations.
RedirectDestinationInterface core/lib/Drupal/Core/Routing/RedirectDestinationInterface.php Provides an interface for redirect destinations.
RedirectDestinationTrait core/lib/Drupal/Core/Routing/RedirectDestinationTrait.php Wrapper methods for the Redirect Destination.
RequestContext core/lib/Drupal/Core/Routing/RequestContext.php Holds information about the current request.
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.
RouteBuilder core/lib/Drupal/Core/Routing/RouteBuilder.php Managing class for rebuilding the router table.
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.
RouteCompiler core/lib/Drupal/Core/Routing/RouteCompiler.php Compiler to generate derived information from a Route necessary for matching.
RouteMatch core/lib/Drupal/Core/Routing/RouteMatch.php Default object representing the results of routing.
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 which preloads non-admin routes.
RouteProvider core/lib/Drupal/Core/Routing/RouteProvider.php A Route Provider front-end for all Drupal-stored routes.
RouteProviderInterface core/lib/Drupal/Core/Routing/RouteProviderInterface.php Extends the router provider interface.
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.
RouteSubscriberBase core/lib/Drupal/Core/Routing/RouteSubscriberBase.php Provides a base implementation for RouteSubscriber.
RoutingEvents core/lib/Drupal/Core/Routing/RoutingEvents.php Contains all events thrown in the core routing component.
StackedRouteMatchInterface core/lib/Drupal/Core/Routing/StackedRouteMatchInterface.php Defines an interface for a stack of route matches.
TrustedRedirectResponse core/lib/Drupal/Core/Routing/TrustedRedirectResponse.php Provides a redirect response which contains trusted URLs.
UrlGenerator core/lib/Drupal/Core/Routing/UrlGenerator.php Generates URLs from route names and parameters.
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.