protected function LingotekConfigTranslationService::checkUploadProcessId in Lingotek Translation 3.7.x
Same name and namespace in other branches
- 4.0.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::checkUploadProcessId()
- 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 2062
Class
- LingotekConfigTranslationService
- Service for managing Lingotek configuration translations.
Namespace
Drupal\lingotekCode
protected function checkUploadProcessId(ConfigEntityInterface $entity) {
$process_id = $this
->getUploadProcessId($entity);
return $this->lingotek
->getProcessStatus($process_id) !== FALSE;
}