You are here

protected function LingotekInterfaceTranslationService::getUploadProcessId in Lingotek Translation 4.0.x

Same name and namespace in other branches
  1. 3.7.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getUploadProcessId()
  2. 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 1213

Class

LingotekInterfaceTranslationService
Service for managing Lingotek interface translations.

Namespace

Drupal\lingotek

Code

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);
}