Drupal 8  8.0.2
Fast404ExceptionHtmlSubscriber Class Reference
Inheritance diagram for Fast404ExceptionHtmlSubscriber:

Public Member Functions

 __construct (ConfigFactoryInterface $config_factory, HttpKernelInterface $http_kernel)
 
 on404 (GetResponseForExceptionEvent $event)
 
- Public Member Functions inherited from HttpExceptionSubscriberBase
 onException (GetResponseForExceptionEvent $event)
 

Protected Member Functions

 getHandledFormats ()
 
- Protected Member Functions inherited from HttpExceptionSubscriberBase
 getHandledFormats ()
 

Static Protected Member Functions

static getPriority ()
 
- Static Protected Member Functions inherited from HttpExceptionSubscriberBase
static getPriority ()
 

Protected Attributes

 $httpKernel
 
 $configFactory
 

Additional Inherited Members

- Static Public Member Functions inherited from HttpExceptionSubscriberBase
static getSubscribedEvents ()
 

Detailed Description

High-performance 404 exception subscriber.

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

Constructor & Destructor Documentation

__construct ( ConfigFactoryInterface  $config_factory,
HttpKernelInterface  $http_kernel 
)

Constructs a new Fast404ExceptionHtmlSubscriber.

Parameters
\Drupal\Core\Config\ConfigFactoryInterface$config_factoryThe configuration factory.
\Symfony\Component\HttpKernel\HttpKernelInterface$http_kernelThe HTTP Kernel service.

References Drupal\configFactory().

Here is the call graph for this function:

Member Function Documentation

getHandledFormats ( )
protected

{}

static getPriority ( )
staticprotected

{}

on404 ( GetResponseForExceptionEvent  $event)

Handles a 404 error for HTML.

Parameters
\Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent$eventThe event to process.

References Drupal\configFactory(), and Html\escape().

Here is the call graph for this function:


The documentation for this class was generated from the following file: