You are here

public function BigPipeStrategy::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/big_pipe/src/Render/Placeholder/BigPipeStrategy.php \Drupal\big_pipe\Render\Placeholder\BigPipeStrategy::__construct()
  2. 9 core/modules/big_pipe/src/Render/Placeholder/BigPipeStrategy.php \Drupal\big_pipe\Render\Placeholder\BigPipeStrategy::__construct()

Constructs a new BigPipeStrategy class.

Parameters

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

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

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

File

core/modules/big_pipe/src/Render/Placeholder/BigPipeStrategy.php, line 99

Class

BigPipeStrategy
Defines the BigPipe placeholder strategy, to send HTML in chunks.

Namespace

Drupal\big_pipe\Render\Placeholder

Code

public function __construct(SessionConfigurationInterface $session_configuration, RequestStack $request_stack, RouteMatchInterface $route_match) {
  $this->sessionConfiguration = $session_configuration;
  $this->requestStack = $request_stack;
  $this->routeMatch = $route_match;
}