public function RefinableCacheableDependencyInterface::addCacheContexts in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Cache/RefinableCacheableDependencyInterface.php \Drupal\Core\Cache\RefinableCacheableDependencyInterface::addCacheContexts()
Adds cache contexts.
Parameters
string[] $cache_contexts: The cache contexts to be added.
Return value
$this
1 method overrides RefinableCacheableDependencyInterface::addCacheContexts()
- ViewUI::addCacheContexts in core/
modules/ views_ui/ src/ ViewUI.php - Adds cache contexts.
File
- core/
lib/ Drupal/ Core/ Cache/ RefinableCacheableDependencyInterface.php, line 27 - Contains \Drupal\Core\Cache\RefinableCacheableDependencyInterface.
Class
- RefinableCacheableDependencyInterface
- Allows to add cacheability metadata to an object for the current runtime.
Namespace
Drupal\Core\CacheCode
public function addCacheContexts(array $cache_contexts);