You are here

public function HtmlResponseBigPipeSubscriber::__construct in Drupal 10

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

Constructs a HtmlResponseBigPipeSubscriber object.

Parameters

\Drupal\big_pipe\Render\BigPipe $big_pipe: The BigPipe service.

File

core/modules/big_pipe/src/EventSubscriber/HtmlResponseBigPipeSubscriber.php, line 34

Class

HtmlResponseBigPipeSubscriber
Response subscriber to replace the HtmlResponse with a BigPipeResponse.

Namespace

Drupal\big_pipe\EventSubscriber

Code

public function __construct(BigPipe $big_pipe) {
  $this->bigPipe = $big_pipe;
}