You are here

public function PathAliasNormalizer::__construct in Tome 8

Constructs a PathAliasNormalizer object.

Parameters

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

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

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

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity field manager.

Overrides EntityNormalizer::__construct

File

modules/tome_sync/src/Normalizer/PathAliasNormalizer.php, line 42

Class

PathAliasNormalizer
Normalizer for Path alias entities.

Namespace

Drupal\tome_sync\Normalizer

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeRepositoryInterface $entity_type_repository = NULL, EntityFieldManagerInterface $entity_field_manager = NULL, EntityRepositoryInterface $entity_repository) {
  parent::__construct($entity_type_manager, $entity_type_repository, $entity_field_manager);
  $this->entityRepository = $entity_repository;
}