You are here

function yamlform_update_8028 in YAML Form 8

Issue #2770823: Save open/close state of detail form element.

File

includes/yamlform.update.inc, line 678
YAML Form module update hooks.

Code

function yamlform_update_8028(&$sandbox) {

  // Update 'yamlform.settings' configuration.
  $settings_config = \Drupal::configFactory()
    ->getEditable('yamlform.settings');
  $settings_config
    ->set('ui.details_save', TRUE);
  $settings_config
    ->save();
}