You are here

protected function HtmlResponseBigPipeSubscriber::getBigPipeService in Drupal 9

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

Returns the BigPipe service to use to send the current response.

Parameters

\Symfony\Component\HttpKernel\Event\ResponseEvent $event: A response event.

Return value

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

1 call to HtmlResponseBigPipeSubscriber::getBigPipeService()
HtmlResponseBigPipeSubscriber::onRespond in core/modules/big_pipe/src/EventSubscriber/HtmlResponseBigPipeSubscriber.php
Transforms a HtmlResponse to a BigPipeResponse.

File

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

Class

HtmlResponseBigPipeSubscriber
Response subscriber to replace the HtmlResponse with a BigPipeResponse.

Namespace

Drupal\big_pipe\EventSubscriber

Code

protected function getBigPipeService(ResponseEvent $event) {
  return $this->bigPipe;
}