protected static function WebformExceptionHtmlSubscriber::getPriority in Webform 8.5
Same name and namespace in other branches
- 6.x 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\EventSubscriberCode
protected static function getPriority() {
// Execute before CustomPageExceptionHtmlSubscriber which is -50.
// @see \Drupal\Core\EventSubscriber\CustomPageExceptionHtmlSubscriber::getPriority
return -49;
}