You are here

public function SmartlingApi::uploadContext in TMGMT Translator Smartling 8

upload context to Smartling

Parameters

array $data:

Return value

string

File

src/Smartling/SmartlingApi.php, line 415

Class

SmartlingApi

Namespace

Drupal\tmgmt_smartling\Smartling

Code

public function uploadContext($data, $filenames) {
  $orgID = $data['orgId'];
  unset($data['orgId']);
  return $this
    ->sendRequest('js/' . $orgID . '/html', $data, 'POST', $filenames);
}