public function LingotekContentTranslationService::downloadDocumentContent in Lingotek Translation 8.2
Same name and namespace in other branches
- 8 src/LingotekContentTranslationService.php \Drupal\lingotek\LingotekContentTranslationService::downloadDocumentContent()
File
- src/
LingotekContentTranslationService.php, line 1121
Class
- LingotekContentTranslationService
- Service for managing Lingotek content translations.
Namespace
Drupal\lingotekCode
public function downloadDocumentContent($document_id) {
try {
$data = $this->lingotek
->downloadDocumentContent($document_id);
} catch (LingotekApiException $exception) {
// TODO: log issue
return FALSE;
}
return $data;
}