Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Config Profile

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

Activity

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

Releases

Version Type Release date
2.0.0-beta3 Pre-release Feb 7, 2025