You are here

public function ContentEntityNormalizer::__construct in Drupal 9

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

Constructs a ContentEntityNormalizer object.

Parameters

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

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Entity\EntityTypeRepositoryInterface $entity_type_repository: The entity type repository.

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

1 call to ContentEntityNormalizer::__construct()
FileEntityNormalizer::__construct in core/modules/hal/src/Normalizer/FileEntityNormalizer.php
Constructs a FileEntityNormalizer object.
1 method overrides ContentEntityNormalizer::__construct()
FileEntityNormalizer::__construct in core/modules/hal/src/Normalizer/FileEntityNormalizer.php
Constructs a FileEntityNormalizer object.

File

core/modules/hal/src/Normalizer/ContentEntityNormalizer.php, line 57

Class

ContentEntityNormalizer
Converts the Drupal entity object structure to a HAL array structure.

Namespace

Drupal\hal\Normalizer

Code

public function __construct(LinkManagerInterface $link_manager, EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, EntityTypeRepositoryInterface $entity_type_repository, EntityFieldManagerInterface $entity_field_manager) {
  $this->linkManager = $link_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->moduleHandler = $module_handler;
  $this->entityTypeRepository = $entity_type_repository;
  $this->entityTypeRepository = $entity_type_repository;
  $this->entityFieldManager = $entity_field_manager;
}