function NoSessionOpen::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/PageCache/RequestPolicy/NoSessionOpen.php \Drupal\Core\PageCache\RequestPolicy\NoSessionOpen::__construct()
  2. 10 core/lib/Drupal/Core/PageCache/RequestPolicy/NoSessionOpen.php \Drupal\Core\PageCache\RequestPolicy\NoSessionOpen::__construct()
  3. 11.x core/lib/Drupal/Core/PageCache/RequestPolicy/NoSessionOpen.php \Drupal\Core\PageCache\RequestPolicy\NoSessionOpen::__construct()

Constructs a new page cache session policy.

Parameters

\Drupal\Core\Session\SessionConfigurationInterface $session_configuration: The session configuration.

File

core/lib/Drupal/Core/PageCache/RequestPolicy/NoSessionOpen.php, line 32

Class

NoSessionOpen
A policy allowing delivery of cached pages when there is no session open.

Namespace

Drupal\Core\PageCache\RequestPolicy

Code

public function __construct(SessionConfigurationInterface $session_configuration) {
    $this->sessionConfiguration = $session_configuration;
}

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