You are here

protected function R4032LoginSubscriber::getHandledFormats in Redirect 403 to User Login 8

Same name and namespace in other branches
  1. 2.x src/EventSubscriber/R4032LoginSubscriber.php \Drupal\r4032login\EventSubscriber\R4032LoginSubscriber::getHandledFormats()

Specifies the request formats this subscriber will respond to.

Return value

array An indexed array of the format machine names that this subscriber will attempt to process, such as "html" or "json". Returning an empty array will apply to all formats.

Overrides HttpExceptionSubscriberBase::getHandledFormats

See also

\Symfony\Component\HttpFoundation\Request

File

src/EventSubscriber/R4032LoginSubscriber.php, line 84

Class

R4032LoginSubscriber
Redirect 403 to User Login event subscriber.

Namespace

Drupal\r4032login\EventSubscriber

Code

protected function getHandledFormats() {
  return [
    'html',
  ];
}