function PlaceholderingRenderCache::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Render/PlaceholderingRenderCache.php \Drupal\Core\Render\PlaceholderingRenderCache::__construct()
  2. 8.9.x core/lib/Drupal/Core/Render/PlaceholderingRenderCache.php \Drupal\Core\Render\PlaceholderingRenderCache::__construct()
  3. 10 core/lib/Drupal/Core/Render/PlaceholderingRenderCache.php \Drupal\Core\Render\PlaceholderingRenderCache::__construct()

Constructs a new PlaceholderingRenderCache object.

Parameters

\Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack.

\Drupal\Core\Cache\VariationCacheFactoryInterface $cacheFactory: The variation cache factory.

\Drupal\Core\Cache\Context\CacheContextsManager $cacheContextsManager: The cache contexts manager.

\Drupal\Core\Render\PlaceholderGeneratorInterface $placeholderGenerator: The placeholder generator.

Overrides RenderCache::__construct

File

core/lib/Drupal/Core/Render/PlaceholderingRenderCache.php, line 79

Class

PlaceholderingRenderCache
Adds automatic placeholdering to the RenderCache.

Namespace

Drupal\Core\Render

Code

public function __construct(RequestStack $requestStack, VariationCacheFactoryInterface $cacheFactory, CacheContextsManager $cacheContextsManager, PlaceholderGeneratorInterface $placeholderGenerator) {
    parent::__construct($requestStack, $cacheFactory, $cacheContextsManager);
}

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