public function WebformExceptionHtmlSubscriber::on403 in Webform 8.5
Same name and namespace in other branches
- 6.x src/EventSubscriber/WebformExceptionHtmlSubscriber.php \Drupal\webform\EventSubscriber\WebformExceptionHtmlSubscriber::on403()
Handles a 403 error for HTML.
Parameters
\Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process.
Overrides DefaultExceptionHtmlSubscriber::on403
File
- src/
EventSubscriber/ WebformExceptionHtmlSubscriber.php, line 117
Class
- WebformExceptionHtmlSubscriber
- Event subscriber to redirect to login form when webform settings instruct to.
Namespace
Drupal\webform\EventSubscriberCode
public function on403(GetResponseForExceptionEvent $event) {
if ($event
->getRequestType() !== HttpKernelInterface::MASTER_REQUEST) {
return;
}
$this
->on403RedirectEntityAccess($event);
$this
->on403RedirectPrivateFileAccess($event);
}