Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Config Profile

82 sites Security covered
View on drupal.org

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.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Feb 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
2.0.0-beta3 Pre-release 10–11 Feb 7, 2025