function tmgmt_smartling_update_8401 in TMGMT Translator Smartling 8.4
Set format to xml.
File
- ./
tmgmt_smartling.install, line 149 - Update function for the tmgmt_smartling module.
Code
function tmgmt_smartling_update_8401() {
$translator_ids = \Drupal::configFactory()
->listAll('tmgmt.translator');
foreach ($translator_ids as $id) {
$config = \Drupal::configFactory()
->getEditable($id);
if ($config && $config
->get('plugin') === 'smartling') {
$config
->set('settings.export_format', 'xml')
->save(TRUE);
}
}
Drupal::state()
->set('tmgmt_smartling.bucket_name', uniqid());
}