CacheableRouteProviderInterface
interface CacheableRouteProviderInterface implements RouteProviderInterface (View source)
Extends the router provider interface to provide caching support.
Methods
RouteCollection
getRoutesByPattern(string $pattern)
Get all routes which match a certain pattern.
addExtraCacheKeyPart(string $cache_key_provider, string $cache_key_part)
Adds a cache key part to be used in the cache ID of the route collection.
Details
RouteCollection
getRoutesByPattern(string $pattern)
Get all routes which match a certain pattern.
Route[]
getAllRoutes()
Returns all the routes on the system.
Usage of this method is discouraged for performance reasons. If possible, use RouteProviderInterface::getRoutesByNames() or RouteProviderInterface::getRoutesByPattern() instead.
reset()
Resets the route provider object.
addExtraCacheKeyPart(string $cache_key_provider, string $cache_key_part)
Adds a cache key part to be used in the cache ID of the route collection.