function yamlform_update_8037 in YAML Form 8
Issue #2781713: Remove id, title, and description from setting.
File
- includes/
yamlform.update.inc, line 795 - YAML Form module update hooks.
Code
function yamlform_update_8037() {
// Update 'yamlform.yamlform.*' configuration.
$config_factory = \Drupal::configFactory();
foreach ($config_factory
->listAll('yamlform.yamlform.') as $yamlform_config_name) {
$yamlform_config = $config_factory
->getEditable($yamlform_config_name);
$yamlform_config
->clear('settings.id');
$yamlform_config
->clear('settings.title');
$yamlform_config
->clear('settings.description');
$yamlform_config
->save(TRUE);
}
}