public static function AccessDeniedSubscriber::getSubscribedEvents in SAML Authentication 8.3
Same name and namespace in other branches
- 8.2 src/EventSubscriber/AccessDeniedSubscriber.php \Drupal\samlauth\EventSubscriber\AccessDeniedSubscriber::getSubscribedEvents()
- 4.x src/EventSubscriber/AccessDeniedSubscriber.php \Drupal\samlauth\EventSubscriber\AccessDeniedSubscriber::getSubscribedEvents()
File
- src/
EventSubscriber/ AccessDeniedSubscriber.php, line 101
Class
- AccessDeniedSubscriber
- Exception subscriber intercepting various "access denied" situations.
Namespace
Drupal\samlauth\EventSubscriberCode
public static function getSubscribedEvents() {
// Use a higher priority than
// \Drupal\Core\EventSubscriber\ExceptionLoggingSubscriber, because there's
// no need to log the exception if we can redirect.
$events[KernelEvents::EXCEPTION][] = [
'onException',
75,
];
return $events;
}