You are here

public static function EntityRouteAlterSubscriber::getSubscribedEvents in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php \Drupal\Core\EventSubscriber\EntityRouteAlterSubscriber::getSubscribedEvents()
  2. 10 core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php \Drupal\Core\EventSubscriber\EntityRouteAlterSubscriber::getSubscribedEvents()

File

core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php, line 55

Class

EntityRouteAlterSubscriber
Registers the 'type' of route parameter names that match an entity type.

Namespace

Drupal\Core\EventSubscriber

Code

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