class Fast404ExceptionHtmlSubscriber

High-performance 404 exception subscriber.

This subscriber will return a minimalist 404 response for HTML requests without running a full page theming operation.

Hierarchy

File

core/lib/Drupal/Core/EventSubscriber/Fast404ExceptionHtmlSubscriber.php, line 17

Namespace

Drupal\Core\EventSubscriber

Members

Name Modifiers Type Description
Fast404ExceptionHtmlSubscriber::$configFactory protected property The config factory.
Fast404ExceptionHtmlSubscriber::$httpKernel protected property The HTTP kernel.
Fast404ExceptionHtmlSubscriber::getHandledFormats protected function Specifies the request formats this subscriber will respond to. Overrides HttpExceptionSubscriberBase::getHandledFormats
Fast404ExceptionHtmlSubscriber::getPriority protected static function Specifies the priority of all listeners in this class. Overrides HttpExceptionSubscriberBase::getPriority
Fast404ExceptionHtmlSubscriber::on404 public function Handles a 404 error for HTML.
Fast404ExceptionHtmlSubscriber::__construct public function Constructs a new Fast404ExceptionHtmlSubscriber.
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.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!EventSubscriber!Fast404ExceptionHtmlSubscriber.php/class/Fast404ExceptionHtmlSubscriber/8.1.x