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

Breadcrumb

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

function Response::isEmpty

Is the response empty?

@final

2 calls to Response::isEmpty()
BinaryFileResponse::prepare in vendor/symfony/http-foundation/BinaryFileResponse.php
Prepares the Response before it is sent to the client.
Response::prepare in vendor/symfony/http-foundation/Response.php
Prepares the Response before it is sent to the client.

File

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

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function isEmpty() : bool {
    return \in_array($this->statusCode, [
        204,
        304,
    ]);
}
RSS feed
Powered by Drupal