public function BigPipeSessionless::sendContent in Sessionless BigPipe 8
Same name and namespace in other branches
- 2.x src/Render/BigPipeSessionless.php \Drupal\big_pipe_sessionless\Render\BigPipeSessionless::sendContent()
Sends an HTML response in chunks using the BigPipe technique.
@internal This method should only be invoked by \Drupal\big_pipe\Render\BigPipeResponse, which is itself an internal class.
Parameters
\Drupal\big_pipe\Render\BigPipeResponse $response: The BigPipe response to send.
Overrides BigPipe::sendContent
File
- src/
Render/ BigPipeSessionless.php, line 62
Class
- BigPipeSessionless
- The sessionless BigPipe service.
Namespace
Drupal\big_pipe_sessionless\RenderCode
public function sendContent(BigPipeResponse $response) {
$this->finalHtmlResponse = new HtmlResponse();
parent::sendContent($response);
$this
->primePageCache($response);
// Don't keep around any state.
$this->finalHtmlResponse = NULL;
}