You are here

public function EntityFinderInterface::findEntities in Feeds 8.3

Searches for entities by entity key.

Parameters

string $entity_type_id: The entity type ID.

string $field: The subfield to search in.

string|int $search: The value to search for.

array $bundles: (optional) The bundles to restrict the search by.

bool $multiple: (optional) Whether or not to select multiple results. Defaults to FALSE.

Return value

int[] A list of entity ID's that were found.

1 method overrides EntityFinderInterface::findEntities()
EntityFinder::findEntities in src/EntityFinder.php
Searches for entities by entity key.

File

src/EntityFinderInterface.php, line 28

Class

EntityFinderInterface
Interface for the Feeds entity finder service.

Namespace

Drupal\feeds

Code

public function findEntities(string $entity_type_id, string $field, $search, array $bundles = [], $multiple = FALSE);