You are here

public function SmartlingTranslator::__construct in TMGMT Translator Smartling 8.3

Same name and namespace in other branches
  1. 8.4 src/Plugin/tmgmt/Translator/SmartlingTranslator.php \Drupal\tmgmt_smartling\Plugin\tmgmt\Translator\SmartlingTranslator::__construct()
  2. 8 src/Plugin/tmgmt/Translator/SmartlingTranslator.php \Drupal\tmgmt_smartling\Plugin\tmgmt\Translator\SmartlingTranslator::__construct()
  3. 8.2 src/Plugin/tmgmt/Translator/SmartlingTranslator.php \Drupal\tmgmt_smartling\Plugin\tmgmt\Translator\SmartlingTranslator::__construct()

Constructs a LocalActionBase object.

Parameters

\GuzzleHttp\ClientInterface $client: The Guzzle HTTP client.

\Drupal\tmgmt_file\Format\FormatManager $format_plugin_manager:

\Drupal\file\FileUsage\DatabaseFileUsageBackend $file_usage:

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher:

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.

\Psr\Log\LoggerInterface $logger:

\Drupal\tmgmt_smartling\Smartling\SmartlingApiWrapper $api_wrapper:

TranslationProgressCalculator $translation_progress_calculator:

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler:

\Drupal\Core\Session\AccountProxyInterface $current_user:

Overrides PluginBase::__construct

File

src/Plugin/tmgmt/Translator/SmartlingTranslator.php, line 122
Contains \Drupal\tmgmt_smartling\Plugin\tmgmt\Translator\SmartlingTranslator.

Class

SmartlingTranslator
Smartling translator plugin.

Namespace

Drupal\tmgmt_smartling\Plugin\tmgmt\Translator

Code

public function __construct(ClientInterface $client, FormatManager $format_plugin_manager, DatabaseFileUsageBackend $file_usage, EventDispatcherInterface $event_dispatcher, array $configuration, $plugin_id, array $plugin_definition, LoggerInterface $logger, SmartlingApiWrapper $api_wrapper, TranslationProgressCalculator $translation_progress_calculator, ModuleHandlerInterface $module_handler, AccountProxyInterface $current_user) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->client = $client;
  $this->formatPluginsManager = $format_plugin_manager;
  $this->fileUsage = $file_usage;
  $this->eventDispatcher = $event_dispatcher;
  $this->logger = $logger;
  $this->smartlingApiWrapper = $api_wrapper;
  $this->translationProgressCalculator = $translation_progress_calculator;
  $this->moduleHandler = $module_handler;
  $this->currentUser = $current_user;
}