function RouteProvider::addExtraCacheKeyPart
Same name in other branches
- 9 core/lib/Drupal/Core/Routing/RouteProvider.php \Drupal\Core\Routing\RouteProvider::addExtraCacheKeyPart()
- 8.9.x core/lib/Drupal/Core/Routing/RouteProvider.php \Drupal\Core\Routing\RouteProvider::addExtraCacheKeyPart()
- 10 core/lib/Drupal/Core/Routing/RouteProvider.php \Drupal\Core\Routing\RouteProvider::addExtraCacheKeyPart()
Overrides CacheableRouteProviderInterface::addExtraCacheKeyPart
1 call to RouteProvider::addExtraCacheKeyPart()
- RouteProvider::getRouteCollectionCacheId in core/
lib/ Drupal/ Core/ Routing/ RouteProvider.php - Returns the cache ID for the route collection cache.
File
-
core/
lib/ Drupal/ Core/ Routing/ RouteProvider.php, line 440
Class
- RouteProvider
- A Route Provider front-end for all Drupal-stored routes.
Namespace
Drupal\Core\RoutingCode
public function addExtraCacheKeyPart($cache_key_provider, $cache_key_part) {
$this->extraCacheKeyParts[$cache_key_provider] = $cache_key_part;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.