You are here

public static function RouteSubscriber::getSubscribedEvents in View Modes Display 8.2

Overrides RouteSubscriberBase::getSubscribedEvents

File

src/Routing/RouteSubscriber.php, line 128

Class

RouteSubscriber
Subscriber for View Mode Display routes.

Namespace

Drupal\view_modes_display\Routing

Code

public static function getSubscribedEvents() {
  $events = parent::getSubscribedEvents();
  $events[RoutingEvents::ALTER] = array(
    'onAlterRoutes',
    -100,
  );
  return $events;
}