function ResourceRoutes::__construct
Same name and namespace in other branches
- 11.x core/modules/rest/src/Routing/ResourceRoutes.php \Drupal\rest\Routing\ResourceRoutes::__construct()
- 10 core/modules/rest/src/Routing/ResourceRoutes.php \Drupal\rest\Routing\ResourceRoutes::__construct()
- 9 core/modules/rest/src/Routing/ResourceRoutes.php \Drupal\rest\Routing\ResourceRoutes::__construct()
- 8.9.x core/modules/rest/src/Routing/ResourceRoutes.php \Drupal\rest\Routing\ResourceRoutes::__construct()
File
-
core/
modules/ rest/ src/ Routing/ ResourceRoutes.php, line 27
Class
- ResourceRoutes
- Subscriber for REST-style routes.
Namespace
Drupal\rest\RoutingCode
public function __construct(#[Autowire(service: 'plugin.manager.rest')] protected ResourcePluginManager $manager, EntityTypeManagerInterface $entity_type_manager, #[Autowire(service: 'logger.channel.rest')] protected LoggerInterface $logger) {
$this->resourceConfigStorage = $entity_type_manager->getStorage('rest_resource_config');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.