You are here

protected static function HttpExceptionSubscriberBase::getPriority in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/EventSubscriber/HttpExceptionSubscriberBase.php \Drupal\Core\EventSubscriber\HttpExceptionSubscriberBase::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.

1 call to HttpExceptionSubscriberBase::getPriority()
HttpExceptionSubscriberBase::getSubscribedEvents in core/lib/Drupal/Core/EventSubscriber/HttpExceptionSubscriberBase.php
Registers the methods in this class that should be listeners.
5 methods override HttpExceptionSubscriberBase::getPriority()
DefaultExceptionHtmlSubscriber::getPriority in core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.php
Specifies the priority of all listeners in this class.
DefaultExceptionSubscriber::getPriority in core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php
Specifies the priority of all listeners in this class.
ExceptionJsonSubscriber::getPriority in core/lib/Drupal/Core/EventSubscriber/ExceptionJsonSubscriber.php
Specifies the priority of all listeners in this class.
ExceptionTestSiteSubscriber::getPriority in core/lib/Drupal/Core/EventSubscriber/ExceptionTestSiteSubscriber.php
Specifies the priority of all listeners in this class.
Fast404ExceptionHtmlSubscriber::getPriority in core/lib/Drupal/Core/EventSubscriber/Fast404ExceptionHtmlSubscriber.php
Specifies the priority of all listeners in this class.

File

core/lib/Drupal/Core/EventSubscriber/HttpExceptionSubscriberBase.php, line 78

Class

HttpExceptionSubscriberBase
Utility base class for exception subscribers.

Namespace

Drupal\Core\EventSubscriber

Code

protected static function getPriority() {
  return 0;
}