You are here

public function ResourceTypeConverter::__construct in JSON:API 8.2

Same name and namespace in other branches
  1. 8 src/ParamConverter/ResourceTypeConverter.php \Drupal\jsonapi\ParamConverter\ResourceTypeConverter::__construct()

ResourceTypeConverter constructor.

Parameters

\Drupal\jsonapi\ResourceType\ResourceTypeRepositoryInterface $resource_type_repository: The JSON:API resource type repository.

File

src/ParamConverter/ResourceTypeConverter.php, line 40

Class

ResourceTypeConverter
Parameter converter for upcasting JSON:API resource type names to objects.

Namespace

Drupal\jsonapi\ParamConverter

Code

public function __construct(ResourceTypeRepositoryInterface $resource_type_repository) {
  $this->resourceTypeRepository = $resource_type_repository;
}