class CacheableResourceNotFoundException
Same name and namespace in other branches
- main core/lib/Drupal/Core/Routing/Exception/CacheableResourceNotFoundException.php \Drupal\Core\Routing\Exception\CacheableResourceNotFoundException
A cacheable ResourceNotFoundException.
Hierarchy
- class \Drupal\Core\Routing\Exception\CacheableResourceNotFoundException implements \Drupal\Core\Cache\CacheableDependencyInterface uses \Drupal\Core\Cache\CacheableDependencyTrait extends \Symfony\Component\Routing\Exception\ResourceNotFoundException
Expanded class hierarchy of CacheableResourceNotFoundException
3 files declare their use of CacheableResourceNotFoundException
- Router.php in core/
lib/ Drupal/ Core/ Routing/ Router.php - RouterListener.php in core/
lib/ Drupal/ Core/ Http/ EventListener/ RouterListener.php - RouterTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Routing/ RouterTest.php
File
-
core/
lib/ Drupal/ Core/ Routing/ Exception/ CacheableResourceNotFoundException.php, line 12
Namespace
Drupal\Core\Routing\ExceptionView source
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);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.