You are here

public function ContextUpload::__construct in TMGMT Translator Smartling 8

Same name and namespace in other branches
  1. 8.4 src/Plugin/QueueWorker/ContextUpload.php \Drupal\tmgmt_smartling\Plugin\QueueWorker\ContextUpload::__construct()
  2. 8.2 src/Plugin/QueueWorker/ContextUpload.php \Drupal\tmgmt_smartling\Plugin\QueueWorker\ContextUpload::__construct()
  3. 8.3 src/Plugin/QueueWorker/ContextUpload.php \Drupal\tmgmt_smartling\Plugin\QueueWorker\ContextUpload::__construct()

Constructs a new LocaleTranslation object.

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\tmgmt_smartling\Context\ContextUploader $context_uploader: The module handler.

\Drupal\Core\Queue\QueueInterface $queue: The queue object.

\Drupal\Core\Config\ConfigFactory $config_factory:

Overrides PluginBase::__construct

File

src/Plugin/QueueWorker/ContextUpload.php, line 63

Class

ContextUpload
Executes interface translation queue tasks.

Namespace

Drupal\tmgmt_smartling\Plugin\QueueWorker

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, ContextUploader $context_uploader, QueueInterface $queue, LoggerInterface $logger, ConfigFactory $config_factory) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->contextUploader = $context_uploader;
  $this->queue = $queue;
  $this->logger = $logger;
  $this->config = $config_factory
    ->get('tmgmt.translator.smartling');
}