public function Response::sendContent

Sends content for the current web response.

Return value

Response

2 calls to Response::sendContent()
BinaryFileResponse::sendContent in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/BinaryFileResponse.php
Sends the file.
Response::send in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php
Sends HTTP headers and content.
2 methods override Response::sendContent()
BinaryFileResponse::sendContent in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/BinaryFileResponse.php
Sends the file.
StreamedResponse::sendContent in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/StreamedResponse.php
This method only sends the content once.

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php, line 296

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function sendContent() {
  echo $this->content;
  return $this;
}