class CacheableAccessDeniedHttpException extends AccessDeniedHttpException implements CacheableDependencyInterface (View source)

A cacheable AccessDeniedHttpException.

Traits

Trait for \Drupal\Core\Cache\CacheableDependencyInterface.

Properties

protected string[] $cacheContexts

Cache contexts.

from  CacheableDependencyTrait
protected string[] $cacheTags

Cache tags.

from  CacheableDependencyTrait
protected int $cacheMaxAge

Cache max-age.

from  CacheableDependencyTrait

Methods

$this
setCacheability(CacheableDependencyInterface $cacheability)

Sets cacheability; useful for value object constructors.

getCacheTags()

{@inheritdoc}

__construct(CacheableDependencyInterface $cacheability, $message = '', Exception $previous = NULL, $code = 0)

{@inheritdoc}

Details

protected $this setCacheability(CacheableDependencyInterface $cacheability)

Sets cacheability; useful for value object constructors.

Parameters

CacheableDependencyInterface $cacheability

The cacheability to set.

Return Value

$this

getCacheTags()

{@inheritdoc}

getCacheContexts()

{@inheritdoc}

getCacheMaxAge()

{@inheritdoc}

__construct(CacheableDependencyInterface $cacheability, $message = '', Exception $previous = NULL, $code = 0)

{@inheritdoc}

Parameters

CacheableDependencyInterface $cacheability
$message
Exception $previous
$code