Skip to content

Instantly share code, notes, and snippets.

@maciejzgadzaj
Last active February 24, 2017 23:42
Show Gist options
  • Select an option

  • Save maciejzgadzaj/15360a1285e9f73a8c026c80857f2a6e to your computer and use it in GitHub Desktop.

Select an option

Save maciejzgadzaj/15360a1285e9f73a8c026c80857f2a6e to your computer and use it in GitHub Desktop.
Drupal 8: force disable module
$module_data = \Drupal::config('core.extension')->get('module');
unset($module_data['my_module']);
\Drupal::configFactory()->getEditable('core.extension')->set('module', $module_data)->save();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment