function SessionExistsCacheContext::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Cache/Context/SessionExistsCacheContext.php \Drupal\Core\Cache\Context\SessionExistsCacheContext::__construct()
- 10 core/lib/Drupal/Core/Cache/Context/SessionExistsCacheContext.php \Drupal\Core\Cache\Context\SessionExistsCacheContext::__construct()
- 9 core/lib/Drupal/Core/Cache/Context/SessionExistsCacheContext.php \Drupal\Core\Cache\Context\SessionExistsCacheContext::__construct()
- 8.9.x core/lib/Drupal/Core/Cache/Context/SessionExistsCacheContext.php \Drupal\Core\Cache\Context\SessionExistsCacheContext::__construct()
Constructs a new SessionExistsCacheContext class.
Parameters
\Drupal\Core\Session\SessionConfigurationInterface $sessionConfiguration: The session configuration.
\Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack.
File
-
core/
lib/ Drupal/ Core/ Cache/ Context/ SessionExistsCacheContext.php, line 24
Class
- SessionExistsCacheContext
- Defines the SessionExistsCacheContext service, for "session or not" caching.
Namespace
Drupal\Core\Cache\ContextCode
public function __construct(protected SessionConfigurationInterface $sessionConfiguration, protected RequestStack $requestStack) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.