You are here

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

Same name and namespace in other branches
  1. 4.0.x src/Plugin/RelatedEntitiesDetector/EditorDetectorBase.php \Drupal\lingotek\Plugin\RelatedEntitiesDetector\EditorDetectorBase::__construct()
  2. 3.6.x src/Plugin/RelatedEntitiesDetector/EditorDetectorBase.php \Drupal\lingotek\Plugin\RelatedEntitiesDetector\EditorDetectorBase::__construct()
  3. 3.7.x src/Plugin/RelatedEntitiesDetector/EditorDetectorBase.php \Drupal\lingotek\Plugin\RelatedEntitiesDetector\EditorDetectorBase::__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\EntityRepositoryInterface $entity_repository: The EntityRepositoryInterface service.

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

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

Overrides PluginBase::__construct

1 call to EditorDetectorBase::__construct()
HtmlLinkDetector::__construct in src/Plugin/RelatedEntitiesDetector/HtmlLinkDetector.php
NestedEntityReferences constructor.
1 method overrides EditorDetectorBase::__construct()
HtmlLinkDetector::__construct in src/Plugin/RelatedEntitiesDetector/HtmlLinkDetector.php
NestedEntityReferences constructor.

File

src/Plugin/RelatedEntitiesDetector/EditorDetectorBase.php, line 68

Class

EditorDetectorBase

Namespace

Drupal\lingotek\Plugin\RelatedEntitiesDetector

Code

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