You are here

public function EntityReferenceFieldItemNormalizer::__construct in Content Synchronization 8.2

Same name and namespace in other branches
  1. 3.0.x src/Normalizer/EntityReferenceFieldItemNormalizer.php \Drupal\content_sync\Normalizer\EntityReferenceFieldItemNormalizer::__construct()

Constructs a EntityReferenceFieldItemNormalizer object.

Parameters

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.

File

src/Normalizer/EntityReferenceFieldItemNormalizer.php, line 38

Class

EntityReferenceFieldItemNormalizer
Adds the file URI to embedded file entities.

Namespace

Drupal\content_sync\Normalizer

Code

public function __construct(EntityRepositoryInterface $entity_repository) {
  $this->entityRepository = $entity_repository;
}