A Route Provider front-end for all Drupal-stored routes.
Hierarchy
- class \Drupal\Core\Routing\RouteProvider implements PreloadableRouteProviderInterface, PagedRouteProviderInterface, EventSubscriberInterface
File
- core/lib/Drupal/Core/Routing/RouteProvider.php, line 22
Namespace
Drupal\Core\Routing
Members
Name | Modifiers | Type | Description |
---|---|---|---|
RouteProvider::$cache | protected | property | The cache backend. |
RouteProvider::$cacheTagInvalidator | protected | property | The cache tag invalidator. |
RouteProvider::$connection | protected | property | The database connection from which to read route information. |
RouteProvider::$currentPath | protected | property | The current path. |
RouteProvider::$pathProcessor | protected | property | A path processor manager for resolving the system path. |
RouteProvider::$routes | protected | property | A cache of already-loaded routes, keyed by route name. |
RouteProvider::$serializedRoutes | protected | property | A cache of already-loaded serialized routes, keyed by route name. |
RouteProvider::$state | protected | property | The state. |
RouteProvider::$tableName | protected | property | The name of the SQL table from which to read the routes. |
RouteProvider::getAllRoutes | public | function | Returns all the routes on the system. Overrides RouteProviderInterface::getAllRoutes |
RouteProvider::getCandidateOutlines | protected | function | Returns an array of path pattern outlines that could match the path parts. |
RouteProvider::getRouteByName | public | function | Find the route using the provided route name (and parameters). Overrides RouteProviderInterface::getRouteByName |
RouteProvider::getRouteCollectionForRequest | public | function | Finds routes that may potentially match the request. Overrides RouteProviderInterface::getRouteCollectionForRequest |
RouteProvider::getRoutesByNames | public | function | Find many routes by their names using the provided list of names. Overrides RouteProviderInterface::getRoutesByNames |
RouteProvider::getRoutesByPath | protected | function | Get all routes which match a certain pattern. |
RouteProvider::getRoutesByPattern | public | function | Get all routes which match a certain pattern. Overrides RouteProviderInterface::getRoutesByPattern |
RouteProvider::getRoutesCount | public | function | Determines the total amount of routes. Overrides PagedRouteProviderInterface::getRoutesCount |
RouteProvider::getRoutesPaged | public | function | Find an amount of routes with an offset and possible a limit. Overrides PagedRouteProviderInterface::getRoutesPaged |
RouteProvider::getSubscribedEvents | static | function | Returns an array of event names this subscriber wants to listen to. Overrides EventSubscriberInterface::getSubscribedEvents |
RouteProvider::preLoadRoutes | public | function | Pre-load routes by their names using the provided list of names. Overrides PreloadableRouteProviderInterface::preLoadRoutes |
RouteProvider::reset | public | function | Resets the route provider object. Overrides RouteProviderInterface::reset |
RouteProvider::routeProviderRouteCompare | protected | function | Comparison function for usort on routes. |
RouteProvider::ROUTE_LOAD_CID_PREFIX | constant | Cache ID prefix used to load routes. | |
RouteProvider::__construct | public | function | Constructs a new PathMatcher. |
Please login to continue.