You are here

function yamlform_update_8027 in YAML Form 8

Issue #2767891: Allow dialogs to be disabled.

File

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

Code

function yamlform_update_8027(&$sandbox) {

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