You are here

public function RelationshipItemNormalizer::__construct in JSON:API 8

Instantiates a RelationshipItemNormalizer object.

Parameters

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

File

src/Normalizer/RelationshipItemNormalizer.php, line 39

Class

RelationshipItemNormalizer
Converts the Drupal entity reference item object to a JSON API structure.

Namespace

Drupal\jsonapi\Normalizer

Code

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