You are here

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

Same name and namespace in other branches
  1. 8.2 src/Plugin/Action/LingotekContentEntityActionBase.php \Drupal\lingotek\Plugin\Action\LingotekContentEntityActionBase::__construct()
  2. 4.0.x src/Plugin/Action/LingotekContentEntityActionBase.php \Drupal\lingotek\Plugin\Action\LingotekContentEntityActionBase::__construct()
  3. 3.0.x src/Plugin/Action/LingotekContentEntityActionBase.php \Drupal\lingotek\Plugin\Action\LingotekContentEntityActionBase::__construct()
  4. 3.1.x src/Plugin/Action/LingotekContentEntityActionBase.php \Drupal\lingotek\Plugin\Action\LingotekContentEntityActionBase::__construct()
  5. 3.2.x src/Plugin/Action/LingotekContentEntityActionBase.php \Drupal\lingotek\Plugin\Action\LingotekContentEntityActionBase::__construct()
  6. 3.3.x src/Plugin/Action/LingotekContentEntityActionBase.php \Drupal\lingotek\Plugin\Action\LingotekContentEntityActionBase::__construct()
  7. 3.4.x src/Plugin/Action/LingotekContentEntityActionBase.php \Drupal\lingotek\Plugin\Action\LingotekContentEntityActionBase::__construct()
  8. 3.5.x src/Plugin/Action/LingotekContentEntityActionBase.php \Drupal\lingotek\Plugin\Action\LingotekContentEntityActionBase::__construct()
  9. 3.6.x src/Plugin/Action/LingotekContentEntityActionBase.php \Drupal\lingotek\Plugin\Action\LingotekContentEntityActionBase::__construct()
  10. 3.7.x src/Plugin/Action/LingotekContentEntityActionBase.php \Drupal\lingotek\Plugin\Action\LingotekContentEntityActionBase::__construct()

Constructs a new UploadToLingotekAction action.

Parameters

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

string $plugin_id: The plugin ID for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\lingotek\LingotekContentTranslationServiceInterface $translation_service: The Lingotek content translation service.

Overrides EntityActionBase::__construct

File

src/Plugin/Action/LingotekContentEntityActionBase.php, line 35

Class

LingotekContentEntityActionBase

Namespace

Drupal\lingotek\Plugin\Action

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, LingotekContentTranslationServiceInterface $translation_service) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager);
  $this->translationService = $translation_service;
}