You are here

public static function RouteSubscriber::getSubscribedEvents in Automatic Entity Label 8.2

Same name and namespace in other branches
  1. 8.3 src/Routing/RouteSubscriber.php \Drupal\auto_entitylabel\Routing\RouteSubscriber::getSubscribedEvents()
  2. 8 src/Routing/RouteSubscriber.php \Drupal\auto_entitylabel\Routing\RouteSubscriber::getSubscribedEvents()

Overrides RouteSubscriberBase::getSubscribedEvents

File

src/Routing/RouteSubscriber.php, line 77

Class

RouteSubscriber
Subscriber for auto_entitylabel routes.

Namespace

Drupal\auto_entitylabel\Routing

Code

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