You are here

protected function BigPipe::sendPostBody in Drupal 9

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

Sends </body> and everything after it.

Parameters

string $post_body: The HTML response's content after the closing </body> tag.

1 call to BigPipe::sendPostBody()
BigPipe::sendContent in core/modules/big_pipe/src/Render/BigPipe.php
Sends an HTML response in chunks using the BigPipe technique.

File

core/modules/big_pipe/src/Render/BigPipe.php, line 664

Class

BigPipe
Service for sending an HTML response in chunks (to get faster page loads).

Namespace

Drupal\big_pipe\Render

Code

protected function sendPostBody($post_body) {
  $this
    ->sendChunk('</body>' . $post_body);
}