Commit 1aef7dc3 authored by anton.shloma's avatar anton.shloma

remove update module

parent e947b5b5
...@@ -26,8 +26,7 @@ function dar_install() { ...@@ -26,8 +26,7 @@ function dar_install() {
$moduleHandler = \Drupal::service('module_handler'); $moduleHandler = \Drupal::service('module_handler');
if ($moduleHandler->moduleExists('update')) { if ($moduleHandler->moduleExists('update')) {
$module_data = \Drupal::config('core.extension')->get('module'); \Drupal::service('module_installer')->uninstall(['update']);
unset($module_data['update']); drupal_flush_all_caches();
\Drupal::configFactory()->getEditable('core.extension')->set('module', $module_data)->save();
} }
} }
Markdown is supported
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