You are here

public static function ResourceRoutes::getSubscribedEvents in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/rest/src/Routing/ResourceRoutes.php \Drupal\rest\Routing\ResourceRoutes::getSubscribedEvents()
  2. 9 core/modules/rest/src/Routing/ResourceRoutes.php \Drupal\rest\Routing\ResourceRoutes::getSubscribedEvents()

File

core/modules/rest/src/Routing/ResourceRoutes.php, line 143

Class

ResourceRoutes
Subscriber for REST-style routes.

Namespace

Drupal\rest\Routing

Code

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