RequestStackCacheContextBase::$requestStack

Same name in other branches
  1. 9 core/lib/Drupal/Core/Cache/Context/RequestStackCacheContextBase.php \Drupal\Core\Cache\Context\RequestStackCacheContextBase::requestStack
  2. 8.9.x core/lib/Drupal/Core/Cache/Context/RequestStackCacheContextBase.php \Drupal\Core\Cache\Context\RequestStackCacheContextBase::requestStack
  3. 10 core/lib/Drupal/Core/Cache/Context/RequestStackCacheContextBase.php \Drupal\Core\Cache\Context\RequestStackCacheContextBase::requestStack

The request stack.

Type: \Symfony\Component\HttpFoundation\RequestStack

File

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

Class

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

Namespace

Drupal\Core\Cache\Context

Code

protected $requestStack;

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