You are here

public static function RouteSubscriber::getSubscribedEvents in Salesforce Suite 5.0.x

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

Overrides RouteSubscriberBase::getSubscribedEvents

File

modules/salesforce_mapping_ui/src/Routing/RouteSubscriber.php, line 73

Class

RouteSubscriber
Listens to the dynamic route events.

Namespace

Drupal\salesforce_mapping_ui\Routing

Code

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