You are here

public function BigPipeResponse::sendContent in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/big_pipe/src/Render/BigPipeResponse.php \Drupal\big_pipe\Render\BigPipeResponse::sendContent()

File

core/modules/big_pipe/src/Render/BigPipeResponse.php, line 111

Class

BigPipeResponse
A response that is sent in chunks by the BigPipe service.

Namespace

Drupal\big_pipe\Render

Code

public function sendContent() {
  $this->bigPipe
    ->sendContent($this);

  // All BigPipe placeholders are processed, so update this response's
  // attachments.
  unset($this->attachments['big_pipe_placeholders']);
  unset($this->attachments['big_pipe_nojs_placeholders']);
  return $this;
}