You are here

public function ResourceTypeConverter::__construct in JSON:API 8

Same name and namespace in other branches
  1. 8.2 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 36

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;
}