function DefaultExceptionHtmlSubscriber::on403
Same name in other branches
- 9 core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.php \Drupal\Core\EventSubscriber\DefaultExceptionHtmlSubscriber::on403()
- 8.9.x core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.php \Drupal\Core\EventSubscriber\DefaultExceptionHtmlSubscriber::on403()
- 11.x core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.php \Drupal\Core\EventSubscriber\DefaultExceptionHtmlSubscriber::on403()
Handles a 403 error for HTML.
Parameters
\Symfony\Component\HttpKernel\Event\ExceptionEvent $event: The event to process.
1 method overrides DefaultExceptionHtmlSubscriber::on403()
- CustomPageExceptionHtmlSubscriber::on403 in core/
lib/ Drupal/ Core/ EventSubscriber/ CustomPageExceptionHtmlSubscriber.php - Handles a 403 error for HTML.
File
-
core/
lib/ Drupal/ Core/ EventSubscriber/ DefaultExceptionHtmlSubscriber.php, line 111
Class
- DefaultExceptionHtmlSubscriber
- Exception subscriber for handling core default HTML error pages.
Namespace
Drupal\Core\EventSubscriberCode
public function on403(ExceptionEvent $event) {
$this->makeSubrequest($event, '/system/403', Response::HTTP_FORBIDDEN);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.