function HtmlResponseBigPipeSubscriber::getBigPipeService

Same name in other branches
  1. 8.9.x core/modules/big_pipe/src/EventSubscriber/HtmlResponseBigPipeSubscriber.php \Drupal\big_pipe\EventSubscriber\HtmlResponseBigPipeSubscriber::getBigPipeService()
  2. 10 core/modules/big_pipe/src/EventSubscriber/HtmlResponseBigPipeSubscriber.php \Drupal\big_pipe\EventSubscriber\HtmlResponseBigPipeSubscriber::getBigPipeService()
  3. 11.x 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;
}

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