NestedEntityReferencesDetector.php in Lingotek Translation 4.0.x
File
src/Plugin/RelatedEntitiesDetector/NestedEntityReferencesDetector.php
View source
<?php
namespace Drupal\lingotek\Plugin\RelatedEntitiesDetector;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\lingotek\RelatedEntities\RelatedEntitiesDetectorInterface;
class NestedEntityReferencesDetector extends EntityReferenceDetectorBase implements RelatedEntitiesDetectorInterface, ContainerFactoryPluginInterface {
protected $fieldTypes = [
"entity_reference",
];
}
Classes
Name |
Description |
NestedEntityReferencesDetector |
@RelatedEntitiesDetector (
id = "nested_entity_references",
title =
Plugin annotation
@Translation("Get related entity references"),
description = @Translation("The default retrieval of nested entities"),
weight = 5,
) |