You are here

public static function RouteSubscriber::getSubscribedEvents in Empty Front Page 8

Overrides RouteSubscriberBase::getSubscribedEvents

File

src/Routing/RouteSubscriber.php, line 37
Contains \Drupal\empty_front_page\Routing\RouteSubscriber.

Class

RouteSubscriber
Subscriber for Empty Front page routes.

Namespace

Drupal\empty_front_page\Routing

Code

public static function getSubscribedEvents() {
  $events = parent::getSubscribedEvents();

  // Ensure to run after the views route subscriber.
  // @see \Drupal\views\EventSubscriber
  $events[RoutingEvents::ALTER] = [
    'onAlterRoutes',
    -180,
  ];
  return $events;
}