You are here

public function NestedLayoutBuilderEntitiesDetector::__construct in Lingotek Translation 3.7.x

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

Nested layoutBuilderDetector 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.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.

Overrides PluginBase::__construct

File

src/Plugin/RelatedEntitiesDetector/NestedLayoutBuilderEntitiesDetector.php, line 73

Class

NestedLayoutBuilderEntitiesDetector
@RelatedEntitiesDetector ( id = "nested_layout_builder_entities_detector", title = Plugin annotation @Translation("Get related nested layout builder content"), description = @translation("The default retrieval of nested layout builder…

Namespace

Drupal\lingotek\Plugin\RelatedEntitiesDetector

Code

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