public function SmartlingTranslator::getSmartlingApi in TMGMT Translator Smartling 8
Return value
\Drupal\tmgmt_smartling\Smartling\SmartlingApi
1 call to SmartlingTranslator::getSmartlingApi()
- SmartlingTranslator::isReadyForDownload in src/
Plugin/ tmgmt/ Translator/ SmartlingTranslator.php - Checks if file is ready for download.
File
- src/
Plugin/ tmgmt/ Translator/ SmartlingTranslator.php, line 254 - Contains \Drupal\tmgmt_smartling\Plugin\tmgmt\Translator\SmartlingTranslator.
Class
- SmartlingTranslator
- Smartling translator plugin.
Namespace
Drupal\tmgmt_smartling\Plugin\tmgmt\TranslatorCode
public function getSmartlingApi(TranslatorInterface $translator) {
if (empty($this->smartlingApi)) {
$this->smartlingApi = new SmartlingApi($translator
->getSetting('key'), $translator
->getSetting('project_id'), $this->client, $translator
->getSetting('api_url'));
}
return $this->smartlingApi;
}