RenderCache::__construct

public RenderCache::__construct(RequestStack $request_stack, CacheFactoryInterface $cache_factory, CacheContextsManager $cache_contexts_manager)

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

File

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

Class

RenderCache
Wraps the caching logic for the render caching system.

Namespace

Drupal\Core\Render

Code

public function __construct(RequestStack $request_stack, CacheFactoryInterface $cache_factory, CacheContextsManager $cache_contexts_manager) {
  $this->requestStack = $request_stack;
  $this->cacheFactory = $cache_factory;
  $this->cacheContextsManager = $cache_contexts_manager;
}
doc_Drupal
2016-10-29 09:37:28
Comments
Leave a Comment

Please login to continue.