protected static function WebformDefaultExceptionHtmlSubscriber::getPriority in Webform 6.x
Same name and namespace in other branches
- 8.5 src/EventSubscriber/WebformDefaultExceptionHtmlSubscriber.php \Drupal\webform\EventSubscriber\WebformDefaultExceptionHtmlSubscriber::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/ WebformDefaultExceptionHtmlSubscriber.php, line 105
Class
- WebformDefaultExceptionHtmlSubscriber
- Event subscriber to redirect to login form when webform settings instruct to.
Namespace
Drupal\webform\EventSubscriberCode
protected static function getPriority() {
// Execute before CustomPageExceptionHtmlSubscriber which is -50.
// @see \Drupal\Core\EventSubscriber\CustomPageExceptionHtmlSubscriber::getPriority
return -49;
}