Skip to content

Instantly share code, notes, and snippets.

@scottalan
Last active June 7, 2018 17:05
Show Gist options
  • Save scottalan/9eb5f17678cb2aa56eef9d49f25a7afa to your computer and use it in GitHub Desktop.
Save scottalan/9eb5f17678cb2aa56eef9d49f25a7afa to your computer and use it in GitHub Desktop.
Config Overrides Example

Drupal 8 doesn't show the $config overrides in the UI or in the database. In order to check the overrides you need to run the following command replacing the name of the $config you are overriding.

  1. Add your $config override to your settings.php or settings.local.php, etc.

$config['search_api.server.solr_server']['backend_config']['connector_config']['host'] = 'my-new-host.com';

  1. Run the following in the CLI to list the configuration object with the override(s)

rig project run drupal "debug:config search_api.server.solr_server --show-overridden"

  1. If not using rig then just:

drupal "debug:config search_api.server.solr_server --show-overridden"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment