RefinableCacheableDependencyInterface::addCacheContexts

public RefinableCacheableDependencyInterface::addCacheContexts(array $cache_contexts)

Adds cache contexts.

Parameters

string[] $cache_contexts: The cache contexts to be added.

Return value

$this

File

core/lib/Drupal/Core/Cache/RefinableCacheableDependencyInterface.php, line 23

Class

RefinableCacheableDependencyInterface
Allows to add cacheability metadata to an object for the current runtime.

Namespace

Drupal\Core\Cache

Code

public function addCacheContexts(array $cache_contexts);
doc_Drupal
2016-10-29 09:36:57
Comments
Leave a Comment

Please login to continue.