The default.settings.php
says
/** * Active configuration settings. * * By default, the active configuration is stored in the database in the * {config} table. To use a different storage mechanism for the active * configuration, do the following prior to installing: * - Override the 'bootstrap_config_storage' setting here. It must be set to a * callable that returns an object that implements * \Drupal\Core\Config\StorageInterface. * - Override the service definition 'config.storage.active'. Put this * override in a services.yml file in the same directory as settings.php * (definitions in this file will override service definition defaults). */ # $settings['bootstrap_config_storage'] = array('Drupal\Core\Config\BootstrapConfigStorageFactory', 'getFileStorage');
I have added above code to my settings.php
and this is the piece of code I have added in services.yml
before install.
services: config.storage.active: class: Drupal\Core\Config\FileStorage factory_class: Drupal\Core\Config\FileStorageFactory factory_method: getActive public: false
How can I change the DB config storage to file config storage after site install? We have config_db.module to change it form file storage to DB storage. Do we have a module to change it from DB storage to file storage?