You are here

protected function LingotekConfigTranslationService::getConfigUploadProcessId in Lingotek Translation 3.7.x

Same name and namespace in other branches
  1. 4.0.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigUploadProcessId()
  2. 3.8.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::getConfigUploadProcessId()

Gets the upload process id.

Parameters

string $mapper_id: The mapper being imported.

1 call to LingotekConfigTranslationService::getConfigUploadProcessId()
LingotekConfigTranslationService::checkConfigUploadProcessId in src/LingotekConfigTranslationService.php
Checks the upload process id.

File

src/LingotekConfigTranslationService.php, line 2112

Class

LingotekConfigTranslationService
Service for managing Lingotek configuration translations.

Namespace

Drupal\lingotek

Code

protected function getConfigUploadProcessId($mapper_id) {
  $state = \Drupal::state();
  $stored_process_ids = $state
    ->get('lingotek_import_process_ids', []);
  $parents = [
    'config_mapper',
    $mapper_id,
  ];
  return NestedArray::getValue($stored_process_ids, $parents);
}