You are here

public function LingotekContentTranslationService::downloadDocumentContent in Lingotek Translation 8

Same name and namespace in other branches
  1. 8.2 src/LingotekContentTranslationService.php \Drupal\lingotek\LingotekContentTranslationService::downloadDocumentContent()

File

src/LingotekContentTranslationService.php, line 719
Contains \Drupal\lingotek\LingotekContentTranslationService.

Class

LingotekContentTranslationService
Service for managing Lingotek content translations.

Namespace

Drupal\lingotek

Code

public function downloadDocumentContent($document_id) {
  try {
    $data = $this->lingotek
      ->downloadDocumentContent($document_id);
  } catch (LingotekApiException $exception) {

    // TODO: log issue
    return FALSE;
  }
  return $data;
}