Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

In Drupal 7, I could manually edit the {system} table in the database to disable a stubbon module. In my Drupal 8 site, this table is gone.

How can I manually disable a module in Drupal 8?

share|improve this question

2 Answers

up vote 4 down vote accepted

I recommend not to do that. If you really want, you can move the relevant line from sites/default/files/config_*/active/system.module.yml into system.module.disabled.yml, but there's a good chance things might break. It was not a good in Drupal 7 either because you missed the hooks firing when modules are disabled.

share|improve this answer
Did you mean hook_disable() and hook_enable() ? – Mołot May 15 at 8:20
I do it as a last resort when a module has things locked up where you can't use Admin on a staging or development install. – bumpaw May 15 at 11:12

Consider using Drush. Drupal 8 is still defining what "disabling modules" should be. There is an ongoing discussion if there should be that option or it should be removed.

share|improve this answer
I'm developing locally on a windows PC and last time I looked Drush wasn't ready for Drupal 8. I'll have to look again. – bumpaw May 15 at 11:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.