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

Breadcrumb

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

function Response::sendContent

Sends content for the current web response.

Return value

$this

1 call to Response::sendContent()
Response::send in vendor/symfony/http-foundation/Response.php
Sends HTTP headers and content.
3 methods override Response::sendContent()
BigPipeResponse::sendContent in core/modules/big_pipe/src/Render/BigPipeResponse.php
Sends content for the current web response.
BinaryFileResponse::sendContent in vendor/symfony/http-foundation/BinaryFileResponse.php
Sends content for the current web response.
StreamedResponse::sendContent in vendor/symfony/http-foundation/StreamedResponse.php
This method only sends the content once.

File

vendor/symfony/http-foundation/Response.php, line 378

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function sendContent() : static {
    echo $this->content;
    return $this;
}
RSS feed
Powered by Drupal