W3cubDocs

/Drupal 8

protected static function HttpExceptionSubscriberBase::getPriority

protected static 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.

File

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

Class

HttpExceptionSubscriberBase
Utility base class for exception subscribers.

Namespace

Drupal\Core\EventSubscriber

Code

protected static function getPriority() {
  return 0;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!EventSubscriber!HttpExceptionSubscriberBase.php/function/HttpExceptionSubscriberBase::getPriority/8.1.x