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