PlaceholderingRenderCache::__construct

public PlaceholderingRenderCache::__construct(RequestStack $request_stack, CacheFactoryInterface $cache_factory, CacheContextsManager $cache_contexts_manager, PlaceholderGeneratorInterface $placeholder_generator)

Constructs a new PlaceholderingRenderCache object.

Parameters

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

\Drupal\Core\Cache\CacheFactoryInterface $cache_factory: The cache factory.

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

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

Overrides RenderCache::__construct

File

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

Class

PlaceholderingRenderCache
Adds automatic placeholdering to the RenderCache.

Namespace

Drupal\Core\Render

Code

public function __construct(RequestStack $request_stack, CacheFactoryInterface $cache_factory, CacheContextsManager $cache_contexts_manager, PlaceholderGeneratorInterface $placeholder_generator) {
  parent::__construct($request_stack, $cache_factory, $cache_contexts_manager);
  $this->placeholderGenerator = $placeholder_generator;
}
doc_Drupal
2016-10-29 09:34:12
Comments
Leave a Comment

Please login to continue.