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

Breadcrumb

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

class CacheableMethodNotAllowedHttpException

A cacheable MethodNotAllowedHttpException.

Hierarchy

  • class \Symfony\Component\HttpKernel\Exception\HttpException extends \Symfony\Component\HttpKernel\Exception\RuntimeException implements \Symfony\Component\HttpKernel\Exception\HttpExceptionInterface
    • class \Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException extends \Symfony\Component\HttpKernel\Exception\HttpException
      • class \Drupal\Core\Http\Exception\CacheableMethodNotAllowedHttpException extends \Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException implements \Drupal\Core\Cache\CacheableDependencyInterface uses \Drupal\Core\Cache\CacheableDependencyTrait

Expanded class hierarchy of CacheableMethodNotAllowedHttpException

File

core/lib/Drupal/Core/Http/Exception/CacheableMethodNotAllowedHttpException.php, line 12

Namespace

Drupal\Core\Http\Exception
View source
class CacheableMethodNotAllowedHttpException extends MethodNotAllowedHttpException implements CacheableDependencyInterface {
    use CacheableDependencyTrait;
    
    /**
     * {@inheritdoc}
     */
    public function __construct(CacheableDependencyInterface $cacheability, array $allow, $message = '', ?\Exception $previous = NULL, $code = 0) {
        $this->setCacheability($cacheability);
        parent::__construct($allow, $message, $previous, $code);
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
CacheableDependencyTrait::$cacheContexts protected property Cache contexts.
CacheableDependencyTrait::$cacheMaxAge protected property Cache max-age.
CacheableDependencyTrait::$cacheTags protected property Cache tags.
CacheableDependencyTrait::getCacheContexts public function 4
CacheableDependencyTrait::getCacheMaxAge public function 4
CacheableDependencyTrait::getCacheTags public function 4
CacheableDependencyTrait::setCacheability protected function Sets cacheability; useful for value object constructors.
CacheableMethodNotAllowedHttpException::__construct public function Overrides MethodNotAllowedHttpException::__construct
HttpException::fromStatusCode public static function
HttpException::getHeaders public function Returns response headers. Overrides HttpExceptionInterface::getHeaders
HttpException::getStatusCode public function Returns the status code. Overrides HttpExceptionInterface::getStatusCode
HttpException::setHeaders public function

API Navigation

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