You are here

public function RelatedEntitiesDetectorInterface::extract in Lingotek Translation 3.5.x

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

Extract nested and related content.

Parameters

Drupal\Core\Entity\ContentEntityInterface $entity: Entity node to parse for related entities.

array $entities: Entities found.

array $related: Related entities.

int $depth: Recursion depth of entity node.

array $visited: Array of visited field definitions.

Return value

array An array of the nested content

File

src/RelatedEntities/RelatedEntitiesDetectorInterface.php, line 26

Class

RelatedEntitiesDetectorInterface

Namespace

Drupal\lingotek\RelatedEntities

Code

public function extract(ContentEntityInterface &$entity, array &$entities, array &$related, $depth, array $visited);