Subscriber for REST-style routes.
Hierarchy
- class \Drupal\Core\Routing\RouteSubscriberBase implements EventSubscriberInterface
- class \Drupal\rest\Routing\ResourceRoutes
File
- core/modules/rest/src/Routing/ResourceRoutes.php, line 15
Namespace
Drupal\rest\Routing
Members
Name | Modifiers | Type | Description |
---|---|---|---|
ResourceRoutes::$logger | protected | property | A logger instance. |
ResourceRoutes::$manager | protected | property | The plugin manager for REST plugins. |
ResourceRoutes::$resourceConfigStorage | protected | property | The REST resource config storage. |
ResourceRoutes::alterRoutes | protected | function | Alters existing routes for a specific collection. Overrides RouteSubscriberBase::alterRoutes |
ResourceRoutes::getRoutesForResourceConfig | protected | function | Provides all routes for a given REST resource config. |
ResourceRoutes::__construct | public | function | Constructs a RouteSubscriber object. |
RouteSubscriberBase::getSubscribedEvents | public static | function | Returns an array of event names this subscriber wants to listen to. Overrides EventSubscriberInterface::getSubscribedEvents |
RouteSubscriberBase::onAlterRoutes | public | function | Delegates the route altering to self::alterRoutes(). |
Please login to continue.