# 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

# Where is the code?

# Estimated completion date

# Dependencies

# Who's doing the port?

# What help do they need?

# D8 roadmap

# Background and reference information

Comments

bonus created an issue. See original summary.

frederickjh’s picture

In 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.

Wolf_22’s picture

Anyone 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.)

apaderno’s picture

Status: Active » Needs work