protected function LingotekContentTranslationService::clearUploadProcessId in Lingotek Translation 4.0.x
Same name and namespace in other branches
- 3.7.x src/LingotekContentTranslationService.php \Drupal\lingotek\LingotekContentTranslationService::clearUploadProcessId()
- 3.8.x src/LingotekContentTranslationService.php \Drupal\lingotek\LingotekContentTranslationService::clearUploadProcessId()
Clears the upload process id.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The entity being imported.
1 call to LingotekContentTranslationService::clearUploadProcessId()
- LingotekContentTranslationService::setSourceStatus in src/
LingotekContentTranslationService.php - Sets the translation status of a given entity.
File
- src/
LingotekContentTranslationService.php, line 2540
Class
- LingotekContentTranslationService
- Service for managing Lingotek content translations.
Namespace
Drupal\lingotekCode
protected function clearUploadProcessId(ContentEntityInterface $entity) {
$state = \Drupal::state();
$stored_process_ids = $state
->get('lingotek_import_process_ids', []);
$parents = [
$entity
->getEntityTypeId(),
$entity
->id(),
];
NestedArray::unsetValue($stored_process_ids, $parents);
$state
->set('lingotek_import_process_ids', $stored_process_ids);
}