CacheableResourceNotFoundException.php
Same filename and directory in other branches
Namespace
Drupal\Core\Routing\ExceptionFile
-
core/
lib/ Drupal/ Core/ Routing/ Exception/ CacheableResourceNotFoundException.php
View source
<?php
namespace Drupal\Core\Routing\Exception;
use Drupal\Core\Cache\CacheableDependencyInterface;
use Drupal\Core\Cache\CacheableDependencyTrait;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
/**
* A cacheable ResourceNotFoundException.
*/
class CacheableResourceNotFoundException extends ResourceNotFoundException implements CacheableDependencyInterface {
use CacheableDependencyTrait;
/**
* {@inheritdoc}
*/
public function __construct(CacheableDependencyInterface $cacheability, $message = '', $code = 0, ?\Throwable $previous = NULL) {
$this->setCacheability($cacheability);
parent::__construct($message, $code, $previous);
}
}
Classes
| Title | Deprecated | Summary |
|---|---|---|
| CacheableResourceNotFoundException | A cacheable ResourceNotFoundException. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.