public ResourceRoutes::__construct(ResourcePluginManager $manager, EntityTypeManagerInterface$entity_type_manager, LoggerInterface $logger)
Constructs a RouteSubscriber object.
Parameters
\Drupal\rest\Plugin\Type\ResourcePluginManager $manager: The resource plugin manager.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager
\Psr\Log\LoggerInterface $logger: A logger instance.
File
- core/modules/rest/src/Routing/ResourceRoutes.php, line 48
Class
- ResourceRoutes
- Subscriber for REST-style routes.
Namespace
Drupal\rest\Routing
Code
1 2 3 4 5 | public function __construct(ResourcePluginManager $manager , EntityTypeManagerInterface $entity_type_manager , LoggerInterface $logger ) { $this ->manager = $manager ; $this ->resourceConfigStorage = $entity_type_manager ->getStorage( 'rest_resource_config' ); $this ->logger = $logger ; } |
Please login to continue.