function HttpExceptionSubscriberBase::getPriority
Same name in other branches
- 9 core/lib/Drupal/Core/EventSubscriber/HttpExceptionSubscriberBase.php \Drupal\Core\EventSubscriber\HttpExceptionSubscriberBase::getPriority()
- 8.9.x core/lib/Drupal/Core/EventSubscriber/HttpExceptionSubscriberBase.php \Drupal\Core\EventSubscriber\HttpExceptionSubscriberBase::getPriority()
- 11.x 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.
- 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.
- 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\EventSubscriberCode
protected static function getPriority() {
return 0;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.