You are here

protected static function HttpExceptionSubscriberBase::getPriority in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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.
4 methods override HttpExceptionSubscriberBase::getPriority()
DefaultExceptionHtmlSubscriber::getPriority in core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.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 75
Contains \Drupal\Core\EventSubscriber\HttpExceptionSubscriberBase.

Class

HttpExceptionSubscriberBase
Utility base class for exception subscribers.

Namespace

Drupal\Core\EventSubscriber

Code

protected static function getPriority() {
  return 0;
}