function RouteProvider::addExtraCacheKeyPart

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Routing/RouteProvider.php \Drupal\Core\Routing\RouteProvider::addExtraCacheKeyPart()

File

core/lib/Drupal/Core/Routing/RouteProvider.php, line 488

Class

RouteProvider
A Route Provider front-end for all Drupal-stored routes.

Namespace

Drupal\Core\Routing

Code

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.