You are here

public function SmartlingTranslator::getApiWrapper in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.3 src/Plugin/tmgmt/Translator/SmartlingTranslator.php \Drupal\tmgmt_smartling\Plugin\tmgmt\Translator\SmartlingTranslator::getApiWrapper()

Parameters

array $settings:

Return value

\Drupal\tmgmt_smartling\Smartling\SmartlingApiWrapper

2 calls to SmartlingTranslator::getApiWrapper()
SmartlingTranslator::abortTranslation in src/Plugin/tmgmt/Translator/SmartlingTranslator.php
Aborts a translation job.
SmartlingTranslator::requestTranslation in src/Plugin/tmgmt/Translator/SmartlingTranslator.php
@abstract

File

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

Class

SmartlingTranslator
Smartling translator plugin.

Namespace

Drupal\tmgmt_smartling\Plugin\tmgmt\Translator

Code

public function getApiWrapper(array $settings) {
  ConnectorInfo::setUpCurrentClientInfo();
  $this->smartlingApiWrapper
    ->setSettings($settings);
  return $this->smartlingApiWrapper;
}