You are here

public function EntityReferenceDetectorBase::__construct in Lingotek Translation 3.8.x

Same name and namespace in other branches
  1. 4.0.x src/Plugin/RelatedEntitiesDetector/EntityReferenceDetectorBase.php \Drupal\lingotek\Plugin\RelatedEntitiesDetector\EntityReferenceDetectorBase::__construct()
  2. 3.6.x src/Plugin/RelatedEntitiesDetector/EntityReferenceDetectorBase.php \Drupal\lingotek\Plugin\RelatedEntitiesDetector\EntityReferenceDetectorBase::__construct()
  3. 3.7.x src/Plugin/RelatedEntitiesDetector/EntityReferenceDetectorBase.php \Drupal\lingotek\Plugin\RelatedEntitiesDetector\EntityReferenceDetectorBase::__construct()

NestedEntityReferences constructor.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

array $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity manager.

\Drupal\Core\Entity\EntityFieldManagerInterface $entityFieldManager: The entity field manager.

\Drupal\lingotek\LingotekConfigurationServiceInterface $lingotekConfiguration: The Lingotek configuration service.

Overrides PluginBase::__construct

File

src/Plugin/RelatedEntitiesDetector/EntityReferenceDetectorBase.php, line 54

Class

EntityReferenceDetectorBase

Namespace

Drupal\lingotek\Plugin\RelatedEntitiesDetector

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entityTypeManager, EntityFieldManagerInterface $entityFieldManager, LingotekConfigurationServiceInterface $lingotekConfiguration) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entityTypeManager;
  $this->entityFieldManager = $entityFieldManager;
  $this->lingotekConfiguration = $lingotekConfiguration;
}