You are here

function webform_update_8604 in Webform 6.x

Issue #3144019: Move webform_editorial to webform_test_editorial.

1 call to webform_update_8604()
webform_update_8600 in includes/webform.install.update.inc
Issue #3087699: JQuery UI is being phased out from Drupal core.

File

includes/webform.install.update.inc, line 4013
Archived Webform update hooks.

Code

function webform_update_8604() {

  // Remove the webform_editorial.module which has changed to the
  // webform_test_editorial.module, which is now a test module.
  // Remove 'webform_editorial' from core.extensions.
  $extension_config = \Drupal::configFactory()
    ->getEditable('core.extension');
  $module = $extension_config
    ->get('module');
  if (isset($module['webform_editorial'])) {
    unset($module['webform_editorial']);
    $extension_config
      ->set('module', $module);
    $extension_config
      ->save();
  }

  // Remove 'webform_editorial' from system.schema.
  \Drupal::keyValue('system.schema')
    ->delete('webform_editorial');
}