You are here

protected function LingotekInterfaceTranslationService::checkUploadProcessId in Lingotek Translation 3.8.x

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

Checks the upload process id.

Parameters

string $component: 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 LingotekInterfaceTranslationService::checkUploadProcessId()
LingotekInterfaceTranslationService::checkSourceStatus in src/LingotekInterfaceTranslationService.php
Checks the source is uploaded correctly.

File

src/LingotekInterfaceTranslationService.php, line 1233

Class

LingotekInterfaceTranslationService
Service for managing Lingotek interface translations.

Namespace

Drupal\lingotek

Code

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