You are here

public static function LanguageAccessSubscriber::getSubscribedEvents in Language access 8

Listen to kernel.request events and call customRedirection.

Return value

array Event names to listen to (key) and methods to call (value).

File

src/EventSubscriber/LanguageAccessSubscriber.php, line 125

Class

LanguageAccessSubscriber
Redirect .html pages to corresponding Node page.

Namespace

Drupal\language_access\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[KernelEvents::REQUEST][] = [
    'customLanguageAccess',
  ];
  return $events;
}