interface EntityFinderInterface in Feeds 8.3
Interface for the Feeds entity finder service.
Hierarchy
- interface \Drupal\feeds\EntityFinderInterface
Expanded class hierarchy of EntityFinderInterface
All classes that implement EntityFinderInterface
6 files declare their use of EntityFinderInterface
- ConfigEntityReference.php in src/
Feeds/ Target/ ConfigEntityReference.php - EntityReference.php in src/
Feeds/ Target/ EntityReference.php - EntityReferenceTestBase.php in tests/
src/ Unit/ Feeds/ Target/ EntityReferenceTestBase.php - File.php in src/
Feeds/ Target/ File.php - FileTest.php in tests/
src/ Unit/ Feeds/ Target/ FileTest.php
File
- src/
EntityFinderInterface.php, line 8
Namespace
Drupal\feedsView source
interface EntityFinderInterface {
/**
* Searches for entities by entity key.
*
* @param string $entity_type_id
* The entity type ID.
* @param string $field
* The subfield to search in.
* @param string|int $search
* The value to search for.
* @param array $bundles
* (optional) The bundles to restrict the search by.
* @param bool $multiple
* (optional) Whether or not to select multiple results.
* Defaults to FALSE.
*
* @return int[]
* A list of entity ID's that were found.
*/
public function findEntities(string $entity_type_id, string $field, $search, array $bundles = [], $multiple = FALSE);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityFinderInterface:: |
public | function | Searches for entities by entity key. | 1 |