function CookiesCacheContext::getCacheableMetadata

Same name in other branches
  1. 9 core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php \Drupal\Core\Cache\Context\CookiesCacheContext::getCacheableMetadata()
  2. 8.9.x core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php \Drupal\Core\Cache\Context\CookiesCacheContext::getCacheableMetadata()
  3. 11.x core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php \Drupal\Core\Cache\Context\CookiesCacheContext::getCacheableMetadata()

Overrides CalculatedCacheContextInterface::getCacheableMetadata

File

core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php, line 43

Class

CookiesCacheContext
Defines the CookiesCacheContext service, for "per cookie" caching.

Namespace

Drupal\Core\Cache\Context

Code

public function getCacheableMetadata($cookie = NULL) {
    return new CacheableMetadata();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.