function CacheRedirect::__construct
Same name in other branches
- 10 core/lib/Drupal/Core/Cache/CacheRedirect.php \Drupal\Core\Cache\CacheRedirect::__construct()
Constructs a CacheRedirect object.
Parameters
\Drupal\Core\Cache\CacheableDependencyInterface $cacheability: The cacheability to redirect to.
See also
\Drupal\Core\Cache\VariationCache::createCacheIdFast()
File
-
core/
lib/ Drupal/ Core/ Cache/ CacheRedirect.php, line 26
Class
- CacheRedirect
- Defines a value object to represent a cache redirect.
Namespace
Drupal\Core\CacheCode
public function __construct(CacheableDependencyInterface $cacheability) {
// Cache redirects only care about cache contexts.
$this->cacheContexts = $cacheability->getCacheContexts();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.