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

Breadcrumb

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

function Response::getContent

Same name in this branch
  1. 11.1.x vendor/symfony/browser-kit/Response.php \Symfony\Component\BrowserKit\Response::getContent()

Gets the current response content.

1 call to Response::getContent()
Response::__toString in vendor/symfony/http-foundation/Response.php
Returns the Response as an HTTP string.
2 methods override Response::getContent()
BinaryFileResponse::getContent in vendor/symfony/http-foundation/BinaryFileResponse.php
Gets the current response content.
StreamedResponse::getContent in vendor/symfony/http-foundation/StreamedResponse.php
Gets the current response content.

File

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

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function getContent() : string|false {
    return $this->content;
}
RSS feed
Powered by Drupal