You are here

function yamlform_update_8040 in YAML Form 8

Issue #2783361: Replace embedded videos by links to them.

File

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

Code

function yamlform_update_8040() {

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