public function MenuLinkContentNormalizer::__construct in Better Normalizers 8
Constructs an 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.
Overrides ContentEntityNormalizer::__construct
File
- src/
Normalizer/ MenuLinkContentNormalizer.php, line 58
Class
- MenuLinkContentNormalizer
- A normalizer to handle menu-link content links to entities.
Namespace
Drupal\better_normalizers\NormalizerCode
public function __construct(LinkManagerInterface $link_manager, EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, EntityTypeRepositoryInterface $entity_type_repository, EntityFieldManagerInterface $entity_field_manager, UuidReferenceInterface $uuid_reference, EntityRepositoryInterface $entity_repository) {
parent::__construct($link_manager, $entity_type_manager, $module_handler, $entity_type_repository, $entity_field_manager);
$this->uuidReference = $uuid_reference;
$this->entityRepository = $entity_repository;
}