public function SmartlingApiWrapper::getTranslationRequestByUid in TMGMT Translator Smartling 8.4
Returns translation request by uid.
Parameters
$bucketName:
$uid:
Return value
mixed
File
- src/
Smartling/ SmartlingApiWrapper.php, line 463 - SmartlingApiWrapper.php.
Class
- SmartlingApiWrapper
- Class SmartlingApiWrapper @package Drupal\tmgmt_smartling\Smartling
Namespace
Drupal\tmgmt_smartling\SmartlingCode
public function getTranslationRequestByUid($bucketName, $uid) {
$result = FALSE;
try {
$result = $this
->getApi('translation_request')
->getTranslationRequest($bucketName, $uid);
} catch (SmartlingApiException $e) {
$this->logger
->error('Smartling failed to get translation request:<br/>
Bucket name: @bucket
Params: @params
Error: @error', [
'@bucket' => $bucketName,
'@uid' => $uid,
'@error' => $e
->getMessage(),
]);
}
return $result;
}