ViewUI::addCacheContexts

public ViewUI::addCacheContexts(array $cache_contexts)

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 1326

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

1
2
3
public function addCacheContexts(array $cache_contexts) {
  return $this->storage->addCacheContexts($cache_contexts);
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.