You are here

public function ViewUI::addCacheContexts in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::addCacheContexts()
  2. 10 core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::addCacheContexts()

Adds cache contexts.

Parameters

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

Return value

$this

Overrides RefinableCacheableDependencyInterface::addCacheContexts

File

core/modules/views_ui/src/ViewUI.php, line 1334

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

public function addCacheContexts(array $cache_contexts) {
  return $this->storage
    ->addCacheContexts($cache_contexts);
}