DefaultExceptionSubscriber::getPriority

protected static DefaultExceptionSubscriber::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/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php, line 52

Class

DefaultExceptionSubscriber
Handles default error responses in serialization formats.

Namespace

Drupal\serialization\EventSubscriber

Code

protected static function getPriority() {
  // This will fire after the most common HTML handler, since HTML requests
  // are still more common than HTTP requests.
  return -75;
}
doc_Drupal
2016-10-29 09:01:39
Comments
Leave a Comment

Please login to continue.