You are here

public function DataReferenceDefinitionNormalizer::__construct in Schemata 8

Same name in this branch
  1. 8 schemata_json_schema/src/Normalizer/json/DataReferenceDefinitionNormalizer.php \Drupal\schemata_json_schema\Normalizer\json\DataReferenceDefinitionNormalizer::__construct()
  2. 8 schemata_json_schema/src/Normalizer/hal/DataReferenceDefinitionNormalizer.php \Drupal\schemata_json_schema\Normalizer\hal\DataReferenceDefinitionNormalizer::__construct()

Constructs an DataReferenceDefinitionNormalizer object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The Entity Type Manager.

\Drupal\hal\LinkManager\LinkManagerInterface $link_manager: The hypermedia link manager.

Overrides DataReferenceDefinitionNormalizer::__construct

File

schemata_json_schema/src/Normalizer/hal/DataReferenceDefinitionNormalizer.php, line 44

Class

DataReferenceDefinitionNormalizer
Normalizer for Entity References in HAL+JSON style.

Namespace

Drupal\schemata_json_schema\Normalizer\hal

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, LinkManagerInterface $link_manager) {
  parent::__construct($entity_type_manager);
  $this->linkManager = $link_manager;
}