function RenderCache::__construct

Constructs a new RenderCache 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.

1 call to RenderCache::__construct()
PlaceholderingRenderCache::__construct in core/lib/Drupal/Core/Render/PlaceholderingRenderCache.php
Constructs a new PlaceholderingRenderCache object.
1 method overrides RenderCache::__construct()
PlaceholderingRenderCache::__construct in core/lib/Drupal/Core/Render/PlaceholderingRenderCache.php
Constructs a new PlaceholderingRenderCache object.

File

core/lib/Drupal/Core/Render/RenderCache.php, line 27

Class

RenderCache
Wraps the caching logic for the render caching system.

Namespace

Drupal\Core\Render

Code

public function __construct(protected RequestStack $requestStack, protected VariationCacheFactoryInterface $cacheFactory, protected CacheContextsManager $cacheContextsManager) {
}

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