As developers, let's explore how configuration management works in Drupal 8. As mentioned earlier in the chapter, by default, Drupal keeps all configurations in the database. While installing, it creates a folder called config_HASH
within /sites/default/files
, where HASH
is a randomly generated long string consisting of numbers and letters. Randomly generated HASH ensures additional protection for the website.
Within the Config
folder, there are two additional folders: active
and staging
. Both are empty by default and contain only .htaccessandREADME.txt
.
Generally, Drupal 8 uses the database to store the active configuration, unless we change it. If we change the default behavior, the active
folder will contain the configuration of the default Drupal installation.
Another directory, staging
, is used to store the configuration of the Drupal site imported from your dev environment.
By default, Drupal and the associated module store the configuration...