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

Breadcrumb

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

function CacheableHttpException::__construct

Overrides HttpException::__construct

File

core/lib/Drupal/Core/Http/Exception/CacheableHttpException.php, line 19

Class

CacheableHttpException
A cacheable HttpException.

Namespace

Drupal\Core\Http\Exception

Code

public function __construct(CacheableDependencyInterface $cacheability, $statusCode = 0, $message = '', ?\Exception $previous = NULL, array $headers = [], $code = 0) {
    $this->setCacheability($cacheability);
    parent::__construct($statusCode, $message, $previous, $headers, $code);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal