Exception subscriber for handling core custom HTML error pages.
Hierarchy
- class \Drupal\Core\EventSubscriber\HttpExceptionSubscriberBase implements EventSubscriberInterface
- class \Drupal\Core\EventSubscriber\DefaultExceptionHtmlSubscriber
- class \Drupal\Core\EventSubscriber\CustomPageExceptionHtmlSubscriber
- class \Drupal\Core\EventSubscriber\DefaultExceptionHtmlSubscriber
File
- core/lib/Drupal/Core/EventSubscriber/CustomPageExceptionHtmlSubscriber.php, line 20
Namespace
Drupal\Core\EventSubscriber
Members
Name | Modifiers | Type | Description |
---|---|---|---|
CustomPageExceptionHtmlSubscriber::$accessManager | protected | property | The access manager. |
CustomPageExceptionHtmlSubscriber::$configFactory | protected | property | The configuration factory. |
CustomPageExceptionHtmlSubscriber::getPriority | protected static | function | Specifies the priority of all listeners in this class. Overrides DefaultExceptionHtmlSubscriber::getPriority |
CustomPageExceptionHtmlSubscriber::makeSubrequestToCustomPath | protected | function | Makes a subrequest to retrieve the custom error page. |
CustomPageExceptionHtmlSubscriber::on403 | public | function | Handles a 403 error for HTML. Overrides DefaultExceptionHtmlSubscriber::on403 |
CustomPageExceptionHtmlSubscriber::on404 | public | function | Handles a 404 error for HTML. Overrides DefaultExceptionHtmlSubscriber::on404 |
CustomPageExceptionHtmlSubscriber::__construct | public | function | Constructs a new CustomPageExceptionHtmlSubscriber. Overrides DefaultExceptionHtmlSubscriber::__construct |
DefaultExceptionHtmlSubscriber::$accessUnawareRouter | protected | property | A router implementation which does not check access. |
DefaultExceptionHtmlSubscriber::$httpKernel | protected | property | The HTTP kernel. |
DefaultExceptionHtmlSubscriber::$logger | protected | property | The logger instance. |
DefaultExceptionHtmlSubscriber::$redirectDestination | protected | property | The redirect destination service. |
DefaultExceptionHtmlSubscriber::getHandledFormats | protected | function | Specifies the request formats this subscriber will respond to. Overrides HttpExceptionSubscriberBase::getHandledFormats |
DefaultExceptionHtmlSubscriber::makeSubrequest | protected | function | Makes a subrequest to retrieve the default error page. |
DefaultExceptionHtmlSubscriber::on401 | public | function | Handles a 401 error for HTML. |
HttpExceptionSubscriberBase::getSubscribedEvents | public static | function | Registers the methods in this class that should be listeners. Overrides EventSubscriberInterface::getSubscribedEvents |
HttpExceptionSubscriberBase::onException | public | function | Handles errors for this subscriber. |
Please login to continue.