function yamlform_update_8049 in YAML Form 8
Issue #2803139: Add details toggle support to form settings.
File
- includes/
yamlform.update.inc, line 1009 - YAML Form module update hooks.
Code
function yamlform_update_8049() {
// Update 'yamlform.settings' configuration.
$settings_config = \Drupal::configFactory()
->getEditable('yamlform.settings');
$settings_config
->set('settings.default_form_details_toggle', FALSE);
$settings_config
->save();
// Update 'yamlform.yamlform.*' configuration.
_yamlform_update_form_settings();
}