You are here

public function LingotekContentEntityConfigurableActionBase::__construct in Lingotek Translation 3.0.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Action/LingotekContentEntityConfigurableActionBase.php \Drupal\lingotek\Plugin\Action\LingotekContentEntityConfigurableActionBase::__construct()
  2. 4.0.x src/Plugin/Action/LingotekContentEntityConfigurableActionBase.php \Drupal\lingotek\Plugin\Action\LingotekContentEntityConfigurableActionBase::__construct()
  3. 3.1.x src/Plugin/Action/LingotekContentEntityConfigurableActionBase.php \Drupal\lingotek\Plugin\Action\LingotekContentEntityConfigurableActionBase::__construct()
  4. 3.2.x src/Plugin/Action/LingotekContentEntityConfigurableActionBase.php \Drupal\lingotek\Plugin\Action\LingotekContentEntityConfigurableActionBase::__construct()
  5. 3.3.x src/Plugin/Action/LingotekContentEntityConfigurableActionBase.php \Drupal\lingotek\Plugin\Action\LingotekContentEntityConfigurableActionBase::__construct()
  6. 3.4.x src/Plugin/Action/LingotekContentEntityConfigurableActionBase.php \Drupal\lingotek\Plugin\Action\LingotekContentEntityConfigurableActionBase::__construct()
  7. 3.5.x src/Plugin/Action/LingotekContentEntityConfigurableActionBase.php \Drupal\lingotek\Plugin\Action\LingotekContentEntityConfigurableActionBase::__construct()
  8. 3.6.x src/Plugin/Action/LingotekContentEntityConfigurableActionBase.php \Drupal\lingotek\Plugin\Action\LingotekContentEntityConfigurableActionBase::__construct()
  9. 3.7.x src/Plugin/Action/LingotekContentEntityConfigurableActionBase.php \Drupal\lingotek\Plugin\Action\LingotekContentEntityConfigurableActionBase::__construct()
  10. 3.8.x src/Plugin/Action/LingotekContentEntityConfigurableActionBase.php \Drupal\lingotek\Plugin\Action\LingotekContentEntityConfigurableActionBase::__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\LanguageLocaleMapperInterface $language_locale_mapper: The language-locale mapper.

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

Overrides ConfigurableActionBase::__construct

File

src/Plugin/Action/LingotekContentEntityConfigurableActionBase.php, line 53

Class

LingotekContentEntityConfigurableActionBase

Namespace

Drupal\lingotek\Plugin\Action

Code

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