class TestRouteProvider
Same name in this branch
- 11.x core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\TestRouteProvider
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php \Drupal\KernelTests\Core\Routing\TestRouteProvider
- 9 core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\TestRouteProvider
- 8.9.x core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php \Drupal\KernelTests\Core\Routing\TestRouteProvider
- 8.9.x core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\TestRouteProvider
- 10 core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php \Drupal\KernelTests\Core\Routing\TestRouteProvider
- 10 core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\TestRouteProvider
Hierarchy
- class \Drupal\Core\Routing\RouteProvider implements \Drupal\Core\Routing\CacheableRouteProviderInterface, \Drupal\Core\Routing\PreloadableRouteProviderInterface, \Symfony\Component\EventDispatcher\EventSubscriberInterface
- class \Drupal\KernelTests\Core\Routing\TestRouteProvider extends \Drupal\Core\Routing\RouteProvider
Expanded class hierarchy of TestRouteProvider
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Routing/ RouteProviderTest.php, line 755
Namespace
Drupal\KernelTests\Core\RoutingView source
class TestRouteProvider extends RouteProvider {
public function getCandidateOutlines(array $parts) {
return parent::getCandidateOutlines($parts);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
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::$extraCacheKeyParts | protected | property | An array of cache key parts to be used for the route match cache. | |
RouteProvider::$languageManager | protected | property | The language manager. | |
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::addExtraCacheKeyPart | public | function | Adds a cache key part to be used in the cache ID of the route collection. | Overrides CacheableRouteProviderInterface::addExtraCacheKeyPart |
RouteProvider::getAllRoutes | public | function | Returns all the routes on the system. | Overrides RouteProviderInterface::getAllRoutes |
RouteProvider::getCurrentLanguageCacheIdPart | protected | function | Returns the language identifier for the route collection cache. | |
RouteProvider::getQueryParametersCacheIdPart | protected | function | Returns the query parameters identifier for the route collection cache. | |
RouteProvider::getRouteByName | public | function | Find the route using the provided route name. | Overrides RouteProviderInterface::getRouteByName |
RouteProvider::getRouteCollectionCacheId | protected | function | Returns the cache ID for the route collection cache. | |
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::getSubscribedEvents | public static | function | ||
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. | |
TestRouteProvider::getCandidateOutlines | public | function | Returns an array of path pattern outlines that could match the path parts. | Overrides RouteProvider::getCandidateOutlines |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.