RelatedEntitiesDetectorInterface.php in Lingotek Translation 4.0.x
Same filename and directory in other branches
- 3.4.x src/RelatedEntities/RelatedEntitiesDetectorInterface.php
- 3.5.x src/RelatedEntities/RelatedEntitiesDetectorInterface.php
- 3.6.x src/RelatedEntities/RelatedEntitiesDetectorInterface.php
- 3.7.x src/RelatedEntities/RelatedEntitiesDetectorInterface.php
- 3.8.x src/RelatedEntities/RelatedEntitiesDetectorInterface.php
Namespace
Drupal\lingotek\RelatedEntitiesFile
src/RelatedEntities/RelatedEntitiesDetectorInterface.phpView source
<?php
namespace Drupal\lingotek\RelatedEntities;
use Drupal\Core\Entity\ContentEntityInterface;
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);
}
Interfaces
Name | Description |
---|---|
RelatedEntitiesDetectorInterface |