function VariationCache::__construct
Constructs a new VariationCache object.
Parameters
\Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack.
\Drupal\Core\Cache\CacheBackendInterface $cacheBackend: The cache backend to wrap.
\Drupal\Core\Cache\Context\CacheContextsManager $cacheContextsManager: The cache contexts manager.
File
-
core/
lib/ Drupal/ Core/ Cache/ VariationCache.php, line 25
Class
- VariationCache
- Wraps a regular cache backend to make it support cache contexts.
Namespace
Drupal\Core\CacheCode
public function __construct(RequestStack $requestStack, CacheBackendInterface $cacheBackend, CacheContextsManager $cacheContextsManager) {
}