You are here

interface RelatedEntitiesDetectorInterface in Lingotek Translation 3.4.x

Same name and namespace in other branches
  1. 4.0.x src/RelatedEntities/RelatedEntitiesDetectorInterface.php \Drupal\lingotek\RelatedEntities\RelatedEntitiesDetectorInterface
  2. 3.5.x src/RelatedEntities/RelatedEntitiesDetectorInterface.php \Drupal\lingotek\RelatedEntities\RelatedEntitiesDetectorInterface
  3. 3.6.x src/RelatedEntities/RelatedEntitiesDetectorInterface.php \Drupal\lingotek\RelatedEntities\RelatedEntitiesDetectorInterface
  4. 3.7.x src/RelatedEntities/RelatedEntitiesDetectorInterface.php \Drupal\lingotek\RelatedEntities\RelatedEntitiesDetectorInterface
  5. 3.8.x src/RelatedEntities/RelatedEntitiesDetectorInterface.php \Drupal\lingotek\RelatedEntities\RelatedEntitiesDetectorInterface

Hierarchy

Expanded class hierarchy of RelatedEntitiesDetectorInterface

All classes that implement RelatedEntitiesDetectorInterface

1 file declares its use of RelatedEntitiesDetectorInterface
NestedEntityReferencesDetector.php in src/Plugin/RelatedEntitiesDetector/NestedEntityReferencesDetector.php

File

src/RelatedEntities/RelatedEntitiesDetectorInterface.php, line 7

Namespace

Drupal\lingotek\RelatedEntities
View source
interface RelatedEntitiesDetectorInterface {

  /**
   * Extract nested and related content.
   *
   * @param Drupal\Core\Entity\ContentEntityInterface $entity
   *   Entity node to parse for related entities.
   * @param array $entities
   *   Entities found.
   * @param array $related
   *   Related entities.
   * @param int $depth
   *   Recursion depth of entity node.
   * @param array $visited
   *   Array of visited field definitions.
   *
   * @return array
   *   An array of the nested content
   */
  public function extract(ContentEntityInterface &$entity, array &$entities, array &$related, $depth, array $visited);

}

Members

Namesort descending Modifiers Type Description Overrides
RelatedEntitiesDetectorInterface::extract public function Extract nested and related content. 1