You are here

public function ResourceIdentifierNormalizer::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/jsonapi/src/Normalizer/ResourceIdentifierNormalizer.php \Drupal\jsonapi\Normalizer\ResourceIdentifierNormalizer::__construct()

RelationshipNormalizer constructor.

Parameters

\Drupal\Core\Entity\EntityFieldManagerInterface $field_manager: The entity field manager.

File

core/modules/jsonapi/src/Normalizer/ResourceIdentifierNormalizer.php, line 44

Class

ResourceIdentifierNormalizer
Normalizes a Relationship according to the JSON:API specification.

Namespace

Drupal\jsonapi\Normalizer

Code

public function __construct(EntityFieldManagerInterface $field_manager) {
  $this->fieldManager = $field_manager;
}