function yamlform_update_8072 in YAML Form 8
Issue #2830472: Add test to confirm that yamlform.settings are being correctly updated via the UI.
File
- includes/
yamlform.update.inc, line 1419 - YAML Form module update hooks.
Code
function yamlform_update_8072(&$sandbox) {
// Update 'yamlform.settings' configuration.
$settings_config = \Drupal::configFactory()
->getEditable('yamlform.settings');
$settings_config
->set('format', array_filter($settings_config
->get('format')));
$settings_config
->save();
}