function CacheableRouteProviderInterface::addExtraCacheKeyPart

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Routing/CacheableRouteProviderInterface.php \Drupal\Core\Routing\CacheableRouteProviderInterface::addExtraCacheKeyPart()
  2. 10 core/lib/Drupal/Core/Routing/CacheableRouteProviderInterface.php \Drupal\Core\Routing\CacheableRouteProviderInterface::addExtraCacheKeyPart()
  3. 11.x 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
Adds a cache key part to be used in the cache ID of the route collection.

File

core/lib/Drupal/Core/Routing/CacheableRouteProviderInterface.php, line 18

Class

CacheableRouteProviderInterface
Extends the router provider interface to provide caching support.

Namespace

Drupal\Core\Routing

Code

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.