public static function RouteSubscriber::getSubscribedEvents in CiviCRM Entity 8.3
Overrides RouteSubscriberBase::getSubscribedEvents
File
- src/
Routing/ RouteSubscriber.php, line 125
Class
- RouteSubscriber
- Alters generated routes for CiviCRM Entity entity definitions.
Namespace
Drupal\civicrm_entity\RoutingCode
public static function getSubscribedEvents() {
$events = parent::getSubscribedEvents();
// Field UI's route subscriber runs at -100.
$events[RoutingEvents::ALTER] = [
'onAlterRoutes',
-200,
];
return $events;
}