DefaultExceptionHtmlSubscriber::on401

public DefaultExceptionHtmlSubscriber::on401(GetResponseForExceptionEvent $event)

Handles a 401 error for HTML.

Parameters

\Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process.

File

core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.php, line 88

Class

DefaultExceptionHtmlSubscriber
Exception subscriber for handling core default HTML error pages.

Namespace

Drupal\Core\EventSubscriber

Code

public function on401(GetResponseForExceptionEvent $event) {
  $this->makeSubrequest($event, '/system/401', Response::HTTP_UNAUTHORIZED);
}
doc_Drupal
2016-10-29 09:01:36
Comments
Leave a Comment

Please login to continue.