function EntryPoint::__construct
Same name and namespace in other branches
- 10 core/modules/jsonapi/src/Controller/EntryPoint.php \Drupal\jsonapi\Controller\EntryPoint::__construct()
- 11.x core/modules/jsonapi/src/Controller/EntryPoint.php \Drupal\jsonapi\Controller\EntryPoint::__construct()
- 9 core/modules/jsonapi/src/Controller/EntryPoint.php \Drupal\jsonapi\Controller\EntryPoint::__construct()
- 8.9.x core/modules/jsonapi/src/Controller/EntryPoint.php \Drupal\jsonapi\Controller\EntryPoint::__construct()
EntryPoint constructor.
Parameters
\Drupal\jsonapi\ResourceType\ResourceTypeRepositoryInterface $resourceTypeRepository: The resource type repository.
\Drupal\Core\Session\AccountInterface $user: The current user.
File
-
core/
modules/ jsonapi/ src/ Controller/ EntryPoint.php, line 38
Class
- EntryPoint
- Controller for the API entry point.
Namespace
Drupal\jsonapi\ControllerCode
public function __construct(protected ResourceTypeRepositoryInterface $resourceTypeRepository, protected AccountInterface $user) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.