You are here

public function TranslationRequestManager::isTranslationSubmissionMissed in TMGMT Translator Smartling 8.4

Parameters

array $translation_request:

Return value

bool

5 calls to TranslationRequestManager::isTranslationSubmissionMissed()
TranslationRequestManager::commitError in src/Smartling/Submission/TranslationRequestManager.php
TranslationRequestManager::commitSuccessfulDownload in src/Smartling/Submission/TranslationRequestManager.php
TranslationRequestManager::commitSuccessfulUpload in src/Smartling/Submission/TranslationRequestManager.php
TranslationRequestManager::isTranslationRequestReadyForDownload in src/Smartling/Submission/TranslationRequestManager.php
Check if job ready for download.
TranslationRequestManager::upsertTranslationRequest in src/Smartling/Submission/TranslationRequestManager.php
Send jobs to Submission service.

File

src/Smartling/Submission/TranslationRequestManager.php, line 307

Class

TranslationRequestManager
Class TranslationRequestManager.

Namespace

Drupal\tmgmt_smartling\Smartling\Submission

Code

public function isTranslationSubmissionMissed(array $translation_request) {
  $is_translation_submission_is_missed = empty($translation_request['translationSubmissions'][0]);
  if ($is_translation_submission_is_missed) {
    $this->logger
      ->error('Translation request does not have submission. Translation request = @translation_request', [
      '@translation_request' => json_encode($translation_request),
    ]);
  }
  return $is_translation_submission_is_missed;
}