DefaultExceptionHtmlSubscriber::getPriority

protected static DefaultExceptionHtmlSubscriber::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/DefaultExceptionHtmlSubscriber.php, line 69

Class

DefaultExceptionHtmlSubscriber
Exception subscriber for handling core default HTML error pages.

Namespace

Drupal\Core\EventSubscriber

Code

protected static function getPriority() {
  // A very low priority so that custom handlers are almost certain to fire
  // before it, even if someone forgets to set a priority.
  return -128;
}
doc_Drupal
2016-10-29 09:01:36
Comments
Leave a Comment

Please login to continue.