You are here

public static function EntityRouteProviderSubscriber::getSubscribedEvents in Drupal 10

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

File

core/lib/Drupal/Core/EventSubscriber/EntityRouteProviderSubscriber.php, line 65

Class

EntityRouteProviderSubscriber
Ensures that routes can be provided by entity types.

Namespace

Drupal\Core\EventSubscriber

Code

public static function getSubscribedEvents() : array {
  $events[RoutingEvents::DYNAMIC][] = [
    'onDynamicRouteEvent',
  ];
  return $events;
}