interface CacheableRouteProviderInterface in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Routing/CacheableRouteProviderInterface.php \Drupal\Core\Routing\CacheableRouteProviderInterface
Extends the router provider interface to provide caching support.
Hierarchy
- interface \Drupal\Core\Routing\RouteProviderInterface extends \Symfony\Cmf\Component\Routing\RouteProviderInterface
- interface \Drupal\Core\Routing\CacheableRouteProviderInterface
Expanded class hierarchy of CacheableRouteProviderInterface
All classes that implement CacheableRouteProviderInterface
2 files declare their use of CacheableRouteProviderInterface
- WorkspaceRequestSubscriber.php in core/
modules/ workspaces/ src/ EventSubscriber/ WorkspaceRequestSubscriber.php - WorkspaceRequestSubscriberTest.php in core/
modules/ workspaces/ tests/ src/ Unit/ WorkspaceRequestSubscriberTest.php
File
- core/
lib/ Drupal/ Core/ Routing/ CacheableRouteProviderInterface.php, line 8
Namespace
Drupal\Core\RoutingView source
interface CacheableRouteProviderInterface extends RouteProviderInterface {
/**
* Adds a cache key part to be used in the cache ID of the route collection.
*
* @param string $cache_key_provider
* The provider of the cache key part.
* @param string $cache_key_part
* A string to be used as a cache key part.
*/
public function addExtraCacheKeyPart($cache_key_provider, $cache_key_part);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheableRouteProviderInterface:: |
public | function | Adds a cache key part to be used in the cache ID of the route collection. | 1 |
RouteProviderInterface:: |
public | function | Returns all the routes on the system. | 4 |
RouteProviderInterface:: |
public | function | Find the route using the provided route name. | 4 |
RouteProviderInterface:: |
public | function | Finds routes that may potentially match the request. | 4 |
RouteProviderInterface:: |
public | function | Find many routes by their names using the provided list of names. | 4 |
RouteProviderInterface:: |
public | function | Get all routes which match a certain pattern. | 4 |
RouteProviderInterface:: |
public | function | Resets the route provider object. | 4 |