You are here

public static function RouteSubscriber::getSubscribedEvents in Field Group 8.3

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

Overrides RouteSubscriberBase::getSubscribedEvents

File

src/Routing/RouteSubscriber.php, line 154

Class

RouteSubscriber
Subscriber for Field group routes.

Namespace

Drupal\field_group\Routing

Code

public static function getSubscribedEvents() {

  // $events = parent::getSubscribedEvents();
  // Come after field_ui, config_translation.
  $events[RoutingEvents::ALTER] = [
    'onAlterRoutes',
    -210,
  ];
  return $events;
}