RequestStackCacheContextBase::__construct

public RequestStackCacheContextBase::__construct(RequestStack $request_stack)

Constructs a new RequestStackCacheContextBase class.

Parameters

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

File

core/lib/Drupal/Core/Cache/Context/RequestStackCacheContextBase.php, line 29

Class

RequestStackCacheContextBase
Defines a base class for cache contexts depending only on the request stack.

Namespace

Drupal\Core\Cache\Context

Code

public function __construct(RequestStack $request_stack) {
  $this->requestStack = $request_stack;
}
doc_Drupal
2016-10-29 09:37:48
Comments
Leave a Comment

Please login to continue.