protected static function Fast404ExceptionHtmlSubscriber::getPriority
protected static Fast404ExceptionHtmlSubscriber::getPriority()
Specifies the priority of all listeners in this class.
The default priority is 1, which is very low. To have listeners that have a "first attempt" at handling exceptions return a higher priority.
Return value
int The event priority of this subscriber.
Overrides HttpExceptionSubscriberBase::getPriority
File
- core/lib/Drupal/Core/EventSubscriber/Fast404ExceptionHtmlSubscriber.php, line 50
Class
- Fast404ExceptionHtmlSubscriber
- High-performance 404 exception subscriber.
Namespace
Drupal\Core\EventSubscriberCode
protected static function getPriority() { // A very high priority so that it can take precedent over anything else, // and thus be fast. return 200; }
© 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/function/Fast404ExceptionHtmlSubscriber::getPriority/8.1.x