You are here

public function CacheableRouteProviderInterface::addExtraCacheKeyPart in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Routing/CacheableRouteProviderInterface.php \Drupal\Core\Routing\CacheableRouteProviderInterface::addExtraCacheKeyPart()
  2. 9 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);