function BigPipeResponse::__construct
Same name in other branches
- 8.9.x core/modules/big_pipe/src/Render/BigPipeResponse.php \Drupal\big_pipe\Render\BigPipeResponse::__construct()
- 10 core/modules/big_pipe/src/Render/BigPipeResponse.php \Drupal\big_pipe\Render\BigPipeResponse::__construct()
- 11.x core/modules/big_pipe/src/Render/BigPipeResponse.php \Drupal\big_pipe\Render\BigPipeResponse::__construct()
Constructs a new BigPipeResponse.
Parameters
\Drupal\Core\Render\HtmlResponse $response: The original HTML response.
Overrides HtmlResponse::__construct
File
-
core/
modules/ big_pipe/ src/ Render/ BigPipeResponse.php, line 49
Class
- BigPipeResponse
- A response that is sent in chunks by the BigPipe service.
Namespace
Drupal\big_pipe\RenderCode
public function __construct(HtmlResponse $response) {
parent::__construct('', $response->getStatusCode(), []);
$this->originalHtmlResponse = $response;
$this->populateBasedOnOriginalHtmlResponse();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.