function BigPipe::sendPostBody
Same name in other branches
- 8.9.x core/modules/big_pipe/src/Render/BigPipe.php \Drupal\big_pipe\Render\BigPipe::sendPostBody()
- 10 core/modules/big_pipe/src/Render/BigPipe.php \Drupal\big_pipe\Render\BigPipe::sendPostBody()
- 11.x 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\RenderCode
protected function sendPostBody($post_body) {
$this->sendChunk('</body>' . $post_body);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.