function CacheableRouteProviderInterface::addExtraCacheKeyPart
Same name in other branches
- 9 core/lib/Drupal/Core/Routing/CacheableRouteProviderInterface.php \Drupal\Core\Routing\CacheableRouteProviderInterface::addExtraCacheKeyPart()
- 8.9.x core/lib/Drupal/Core/Routing/CacheableRouteProviderInterface.php \Drupal\Core\Routing\CacheableRouteProviderInterface::addExtraCacheKeyPart()
- 10 core/lib/Drupal/Core/Routing/CacheableRouteProviderInterface.php \Drupal\Core\Routing\CacheableRouteProviderInterface::addExtraCacheKeyPart()
Adds a cache key part to be used in the cache ID of the route collection.
Parameters
string $cache_key_provider: The provider of the cache key part.
string $cache_key_part: A string to be used as a cache key part.
1 method overrides CacheableRouteProviderInterface::addExtraCacheKeyPart()
- RouteProvider::addExtraCacheKeyPart in core/
lib/ Drupal/ Core/ Routing/ RouteProvider.php
File
-
core/
lib/ Drupal/ Core/ Routing/ CacheableRouteProviderInterface.php, line 18
Class
- CacheableRouteProviderInterface
- Extends the router provider interface to provide caching support.
Namespace
Drupal\Core\RoutingCode
public function addExtraCacheKeyPart($cache_key_provider, $cache_key_part);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.