Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
# Summary
Habitat provides settings to enable or disable certain modules on each environment (habitat). Just set a variable with e.g. $conf['habitat'] = 'local'; in your settings.php file (the actual variable to use there is configurable for your current workflow). The disabling/enabling modules is done on hook_init.
# Project URL
https://www.drupal.org/project/habitat
Comments
Comment #2
frederickjhIn looking at the Habitat code repository it appears that that some work has been done on porting this module. There is a 8.x-1.x branch that contains the code.
Comment #3
Wolf_22 CreditAttribution: Wolf_22 as a volunteer commentedAnyone coming across this for Drupal 8 requirements should know that upkeep for this module has become somewhat stagnant (by years) due to being unable to disable modules with Drupal 8. See the following URL for more:
https://www.drupal.org/project/habitat/issues/2722611
(Not sure what the functional alternative is for what this module provided. If someone else has some ideas about this, feel free to chime in.)
Comment #4
apadernoThe port to Drupal 8 seems started (https://www.drupal.org/project/habitat/releases/8.x-1.x-dev).