You are here

public function EntityFinder::__construct in Feeds 8.3

Constructs a new EntityFinder object.

Parameters

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

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

File

src/EntityFinder.php, line 35

Class

EntityFinder
Searches for existing entities by a certain field.

Namespace

Drupal\feeds

Code

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