You are here

protected static function WebformExceptionHtmlSubscriber::getPriority in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/EventSubscriber/WebformExceptionHtmlSubscriber.php \Drupal\webform\EventSubscriber\WebformExceptionHtmlSubscriber::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 DefaultExceptionHtmlSubscriber::getPriority

File

src/EventSubscriber/WebformExceptionHtmlSubscriber.php, line 105

Class

WebformExceptionHtmlSubscriber
Event subscriber to redirect to login form when webform settings instruct to.

Namespace

Drupal\webform\EventSubscriber

Code

protected static function getPriority() {

  // Execute before CustomPageExceptionHtmlSubscriber which is -50.
  // @see \Drupal\Core\EventSubscriber\CustomPageExceptionHtmlSubscriber::getPriority
  return -49;
}