Since https://www.drupal.org/node/2241059, active configuration is in the database by default.
When you install a new Drupal site, you have a file at sites/default/files/config_.../active/README.txt which states:
If you change the configuration system to use file storage instead of the database for the active Drupal site configuration, this directory will contain the active configuration.
Is it possible to change the default so that config is in the file system at sites/default/files/config_.../active?
If it is no longer possible, then the sites/default/files/config_.../active should no longer exist.
If it is possible, then the text at sites/default/files/config_.../active/README.txt should be changed from:
If you change the configuration system to use file storage instead of the database for the active Drupal site configuration, this directory will contain the active configuration.
to
If you change the configuration system to use file storage instead of the database for the active Drupal site configuration (to do this, go to ABC and click XYZ), this directory will contain the active configuration.
Cheers,
Albert
Comment | File | Size | Author |
---|---|---|---|
#4 | 2323529_4.patch | 1.83 KB | slashrsm |
Comments
Comment #1
slashrsm CreditAttribution: slashrsm commentedconfig.storage.active uses Drupal\Core\Config\DatabaseStorage by default. If you alter it to use Drupal\Core\Config\FileStorage shoud save active config in files. Didn't actually try it but this is how it shoudl work in theory.
Comment #2
alberto56 CreditAttribution: alberto56 commentedThanks,
I didn't try it yet either, but the current sites/default/files/config_.../active/README.txt makes it sound as if anyone can just switch from the DB to the filesystem easily (I was looking for an option in the GUI). Perhaps a better README might be something like:
Cheers,
Albert
Comment #3
swentel CreditAttribution: swentel commentedYeah, this readme text can probably be updated. There's more info in settings.php - search for 'Active configuration settings'.
Comment #4
slashrsm CreditAttribution: slashrsm commentedHow about something like this?
Comment #5
TomSherlock CreditAttribution: TomSherlock commentedswentel, the information in settings.php regarding 'Active configuration settings', does not supply necessary settings for config.storage.active in the services.yml.
Should such detail be provided in settings.php, or at include a 'pointer' to where this information can be found? Such information does not seem to exist, BTW.
Comment #11
borisson_This is outdated, there is a comment in settings.php about this now.