function CookiesCacheContext::getCacheableMetadata
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php \Drupal\Core\Cache\Context\CookiesCacheContext::getCacheableMetadata()
- 10 core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php \Drupal\Core\Cache\Context\CookiesCacheContext::getCacheableMetadata()
- 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\ContextCode
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.