You are here

public function SmartlingApiWrapper::getApi in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.3 src/Smartling/SmartlingApiWrapper.php \Drupal\tmgmt_smartling\Smartling\SmartlingApiWrapper::getApi()

Parameters

string $api_type:

Return value

mixed

Throws

Exception

SmartlingApiException

File

src/Smartling/SmartlingApiWrapper.php, line 67
SmartlingApiWrapper.php.

Class

SmartlingApiWrapper
Class SmartlingApiWrapper @package Drupal\tmgmt_smartling\Smartling

Namespace

Drupal\tmgmt_smartling\Smartling

Code

public function getApi($api_type = 'file') {
  return $this->apiFactory
    ->create($this->settings, $api_type);
}