Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RefinableCacheableDependencyInterface.php

function 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 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);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal