public function RelationshipNormalizer::__construct in JSON:API 8
RelationshipNormalizer constructor.
Parameters
\Drupal\jsonapi\ResourceType\ResourceTypeRepositoryInterface $resource_type_repository: The JSON API resource type repository.
\Drupal\jsonapi\LinkManager\LinkManager $link_manager: The link manager.
File
- src/
Normalizer/ RelationshipNormalizer.php, line 51
Class
- RelationshipNormalizer
- Normalizes a Relationship according to the JSON API specification.
Namespace
Drupal\jsonapi\NormalizerCode
public function __construct(ResourceTypeRepositoryInterface $resource_type_repository, LinkManager $link_manager) {
$this->resourceTypeRepository = $resource_type_repository;
$this->linkManager = $link_manager;
}