You are here

public function EntityReferenceItemNormalizer::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/hal/src/Normalizer/EntityReferenceItemNormalizer.php \Drupal\hal\Normalizer\EntityReferenceItemNormalizer::__construct()

Constructs an EntityReferenceItemNormalizer object.

Parameters

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

\Drupal\serialization\EntityResolver\EntityResolverInterface $entity_Resolver: The entity resolver.

File

core/modules/hal/src/Normalizer/EntityReferenceItemNormalizer.php, line 49
Contains \Drupal\hal\Normalizer\EntityReferenceItemNormalizer.

Class

EntityReferenceItemNormalizer
Converts the Drupal entity reference item object to HAL array structure.

Namespace

Drupal\hal\Normalizer

Code

public function __construct(LinkManagerInterface $link_manager, EntityResolverInterface $entity_Resolver) {
  $this->linkManager = $link_manager;
  $this->entityResolver = $entity_Resolver;
}