function tmgmt_smartling_tmgmt_extension_suit_updated_entity_jobs in TMGMT Translator Smartling 8.3
Same name and namespace in other branches
- 8.4 tmgmt_smartling.module \tmgmt_smartling_tmgmt_extension_suit_updated_entity_jobs()
Implements hook_tmgmt_extension_suit_updated_entity_jobs().
File
- ./
tmgmt_smartling.module, line 694 - Contains
Code
function tmgmt_smartling_tmgmt_extension_suit_updated_entity_jobs(array $job_ids) {
$jobs = Job::loadMultiple($job_ids);
foreach ($jobs as $job) {
$translator_plugin = $job
->getTranslatorPlugin();
if ($translator_plugin instanceof ExtendedTranslatorPluginInterface) {
Drupal::getContainer()
->get('logger.channel.smartling')
->info(t('File upload queued (track entity changes). Job id: @job_id, file name: @name.', [
'@name' => $translator_plugin
->getFileName($job),
'@job_id' => $job
->id(),
])
->render());
}
}
return Drupal::service('tmgmt_smartling.bucket_job_manager')
->handle(Job::loadMultiple($job_ids));
}