You are here

interface EntityFinderInterface in Feeds 8.3

Interface for the Feeds entity finder service.

Hierarchy

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

... See full list

File

src/EntityFinderInterface.php, line 8

Namespace

Drupal\feeds
View 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

Namesort descending Modifiers Type Description Overrides
EntityFinderInterface::findEntities public function Searches for entities by entity key. 1