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

Breadcrumb

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

function Response::isImmutable

Returns true if the response is marked as "immutable".

@final

File

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

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function isImmutable() : bool {
    return $this->headers
        ->hasCacheControlDirective('immutable');
}
RSS feed
Powered by Drupal