You are here

public static function DomainRedirectEventSubscriber::getSubscribedEvents in Domain 301 Redirect 8

See also

RedirectResponseSubscriber::onKernelRequestCheckRedirect

File

src/EventSubscriber/DomainRedirectEventSubscriber.php, line 87

Class

DomainRedirectEventSubscriber
Class DomainRedirectEventSubscriber.

Namespace

Drupal\domain_301_redirect\EventSubscriber

Code

public static function getSubscribedEvents() {

  // Set the redirect to be before 404 or redirect checks.
  $events[KernelEvents::REQUEST] = [
    'requestHandler',
    34,
  ];
  return $events;
}