You are here

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

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

Checks the upload process id.

Parameters

\Drupal\Core\Config\Entity\ConfigEntityInterface $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 LingotekConfigTranslationService::checkUploadProcessId()
LingotekConfigTranslationService::checkSourceStatus in src/LingotekConfigTranslationService.php
Checks the source is uploaded correctly.

File

src/LingotekConfigTranslationService.php, line 2078

Class

LingotekConfigTranslationService
Service for managing Lingotek configuration translations.

Namespace

Drupal\lingotek

Code

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