protected function LingotekConfigTranslationService::getUploadProcessId in Lingotek Translation 4.0.x
Same name and namespace in other branches
- 3.7.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getUploadProcessId()
- 3.8.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getUploadProcessId()
Gets the upload process id.
Parameters
\Drupal\Core\Config\Entity\ConfigEntityInterface $entity: The entity being imported.
1 call to LingotekConfigTranslationService::getUploadProcessId()
- LingotekConfigTranslationService::checkUploadProcessId in src/
LingotekConfigTranslationService.php - Checks the upload process id.
File
- src/
LingotekConfigTranslationService.php, line 2058
Class
- LingotekConfigTranslationService
- Service for managing Lingotek configuration translations.
Namespace
Drupal\lingotekCode
protected function getUploadProcessId(ConfigEntityInterface $entity) {
$state = \Drupal::state();
$stored_process_ids = $state
->get('lingotek_import_process_ids', []);
$parents = [
$entity
->getEntityTypeId(),
$entity
->id(),
];
return NestedArray::getValue($stored_process_ids, $parents);
}