You are here

static function GlobalredirectSubscriber::getSubscribedEvents in Global Redirect 8

File

src/EventSubscriber/GlobalredirectSubscriber.php, line 235
Contains \Drupal\globalredirect\EventSubscriber\GlobalredirectSubscriber.

Class

GlobalredirectSubscriber
KernelEvents::REQUEST subscriber for redirecting q=path/to/page requests.

Namespace

Drupal\globalredirect\EventSubscriber

Code

static function getSubscribedEvents() {

  // This needs to run before RouterListener::onKernelRequest(), which has
  // a priority of 32. Otherwise, that aborts the request if no matching
  // route is found.
  $events[KernelEvents::REQUEST][] = array(
    'globalredirectCleanUrls',
    33,
  );
  $events[KernelEvents::REQUEST][] = array(
    'globalredirectDeslash',
    34,
  );
  $events[KernelEvents::REQUEST][] = array(
    'globalredirectFrontPage',
    35,
  );
  $events[KernelEvents::REQUEST][] = array(
    'globalredirectNormalizeAliases',
    36,
  );
  $events[KernelEvents::REQUEST][] = array(
    'globalredirectForum',
    37,
  );
  return $events;
}