Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Config Profile

Security covered Under active development 98 sites

This module assists installation profile developers in efficiently updating their profiles by exporting configuration. It allows you to specify a profile for exporting active configurations during `drush config-export` and can exclude certain configuration entities. The module recursively updates configuration files within the installation profile, ensuring modules and their configurations are correctly overridden.

This module helps installation profile developers to update the profile quickly on configuration export.

Installation

composer require drupal/config_profile:^2.0

Configuration

Go to Administration > Configuration > Development > Synchronize > Profile and set the profile in which you would like to export the active configuration on every drush config-export execution. Optionally, you can specify a set of config entities that you don't want to be exported to the installation profile.

Usage

drush config-export
This module searches recursively in the installation profile, and overrides the existing configuration files in the place where they are. This means that if you have several modules inside your profile, drush config-export will override the module's configuration entities in the right places. For example:

  • profiles/my_profile/config/install
  • profiles/my_profile/config/optional
  • profiles/my_profile/modules/my_module/config/install

Notes

  1. The operation of this module happens as a side effect. That is, when `drush config-export` runs, it still exports configuration to the configured configuration directory in your site's settings, the main one. But it will *also* export configuration to the configured profile's configuration directory. As such, you don't need to set your site's configuration directory to that of the profile.
  2. It only exports things that have changed based on the main configuration store that your site has configured. So if you're not seeing the changes you're expecting, empty the main directory before running the command. Otherwise, you may get an incomplete set of changes exported to the `config_profile` directory.
  3. UUIDs are removed in the exported profile configuration so that the configuration can be imported anywhere.

Warning!

Use with caution. Always review the location of your config entities before you commit. Placing config entities in the wrong directory (e.g. `config/install`, `config/optional`, etc.) can break your installation profile.

Drupal 9–10 · not 11

Ask your assistant about Config Profile

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
7
Tracked since
Apr 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
2.0.0-beta3 Pre-release 10–11 Feb 7, 2025
2.0.0-beta2 Pre-release 10–11 Aug 28, 2024
2.0.0-beta1 Pre-release 10–11 May 20, 2024
2.0.x-dev Dev 10–11 Apr 10, 2024
8.x-1.2-beta1 Pre-release 9–10 Mar 13, 2024
8.x-1.1 Stable 9–10 Sep 3, 2023
8.x-1.1-beta1 Pre-release 9–10 Apr 30, 2023