Commit c6c06872 authored by Chris Shantz's avatar Chris Shantz
Browse files

Merge branch '1.0.x' into prod/1.0.x

parents 65dda6a9 47fd3523
......@@ -839,3 +839,28 @@ function uw_sites_all_update_9118(array &$sandbox): void {
$scheduler_config->set('log', FALSE)->save();
}
}
/**
* Uninstall the migration modules if enabled.
*/
function uw_sites_all_update_9119(&$sandbox) {
// Modules to uninstall.
$modules = [
'uw_migrate',
'webform_migrate',
'webform_node',
];
// Step through each of the modules, ensure that they
// are enabled, and if enabled, uninstall.
foreach ($modules as $module) {
// If the module is enabled, uninstall it.
if (\Drupal::service('module_handler')->moduleExists($module)) {
// Uninstall the module.
\Drupal::service('module_installer')->uninstall([$module]);
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment