public function RelatedEntitiesDetectorInterface::extract in Lingotek Translation 3.7.x
Same name and namespace in other branches
- 4.0.x src/RelatedEntities/RelatedEntitiesDetectorInterface.php \Drupal\lingotek\RelatedEntities\RelatedEntitiesDetectorInterface::extract()
- 3.4.x src/RelatedEntities/RelatedEntitiesDetectorInterface.php \Drupal\lingotek\RelatedEntities\RelatedEntitiesDetectorInterface::extract()
- 3.5.x src/RelatedEntities/RelatedEntitiesDetectorInterface.php \Drupal\lingotek\RelatedEntities\RelatedEntitiesDetectorInterface::extract()
- 3.6.x src/RelatedEntities/RelatedEntitiesDetectorInterface.php \Drupal\lingotek\RelatedEntities\RelatedEntitiesDetectorInterface::extract()
- 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
4 methods override RelatedEntitiesDetectorInterface::extract()
- EditorDetectorBase::extract in src/
Plugin/ RelatedEntitiesDetector/ EditorDetectorBase.php - Extract nested and related content.
- EntityReferenceDetectorBase::extract in src/
Plugin/ RelatedEntitiesDetector/ EntityReferenceDetectorBase.php - Extract nested and related content.
- FieldLinkDetector::extract in src/
Plugin/ RelatedEntitiesDetector/ FieldLinkDetector.php - Extract nested and related content.
- NestedLayoutBuilderEntitiesDetector::extract in src/
Plugin/ RelatedEntitiesDetector/ NestedLayoutBuilderEntitiesDetector.php - Extract nested and related content.
File
- src/
RelatedEntities/ RelatedEntitiesDetectorInterface.php, line 26
Class
Namespace
Drupal\lingotek\RelatedEntitiesCode
public function extract(ContentEntityInterface &$entity, array &$entities, array &$related, $depth, array $visited);