function VariationCache::__construct

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Cache/VariationCache.php \Drupal\Core\Cache\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\Cache

Code

public function __construct(RequestStack $requestStack, CacheBackendInterface $cacheBackend, CacheContextsManager $cacheContextsManager) {
}

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