Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. BigPipeResponse.php

function 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 50

Class

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

Namespace

Drupal\big_pipe\Render

Code

public function __construct(HtmlResponse $response) {
    parent::__construct('', $response->getStatusCode(), []);
    $this->originalHtmlResponse = $response;
    $this->populateBasedOnOriginalHtmlResponse();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal