You are here

protected function LingotekContentTranslationService::checkUploadProcessId in Lingotek Translation 4.0.x

Same name and namespace in other branches
  1. 3.7.x src/LingotekContentTranslationService.php \Drupal\lingotek\LingotekContentTranslationService::checkUploadProcessId()
  2. 3.8.x src/LingotekContentTranslationService.php \Drupal\lingotek\LingotekContentTranslationService::checkUploadProcessId()

Checks the upload process id.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: The entity being imported.

Return value

bool If the process is completed or in progress, returns TRUE. If it failed, returns FALSE.

1 call to LingotekContentTranslationService::checkUploadProcessId()
LingotekContentTranslationService::checkSourceStatus in src/LingotekContentTranslationService.php
Checks the source is uploaded correctly.

File

src/LingotekContentTranslationService.php, line 2529

Class

LingotekContentTranslationService
Service for managing Lingotek content translations.

Namespace

Drupal\lingotek

Code

protected function checkUploadProcessId(ContentEntityInterface $entity) {
  $process_id = $this
    ->getUploadProcessId($entity);
  return $this->lingotek
    ->getProcessStatus($process_id) !== FALSE;
}