You are here

protected static function HttpExceptionSubscriberBase::getPriority in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/EventSubscriber/HttpExceptionSubscriberBase.php \Drupal\Core\EventSubscriber\HttpExceptionSubscriberBase::getPriority()
  2. 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 method overrides HttpExceptionSubscriberBase::getPriority()
DefaultExceptionSubscriber::getPriority in core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.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;
}