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

Files: 
CommentFileSizeAuthor
#4 2323529_4.patch1.83 KBslashrsm
PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 75,931 pass(es). View

Comments

slashrsm’s picture

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

alberto56’s picture

Thanks,

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:

Advanced users can change the configuration system to use file storage instead of the database for the active Drupal site configuration (to do this, config.storage.active can be set to Drupal\Core\Config\FileStorage instead of the default Drupal\Core\Config\DatabaseStorage; there is no way to do this in the GUI), this directory will contain the active configuration.

Cheers,

Albert

swentel’s picture

Yeah, this readme text can probably be updated. There's more info in settings.php - search for 'Active configuration settings'.

slashrsm’s picture

Category: Feature request » Task
Status: Active » Needs review
FileSize
1.83 KB
PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 75,931 pass(es). View

How about something like this?

TomSherlock’s picture

swentel, 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.

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.