Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Profile Split Enable

Security covered No further development 1,260 sites

Part of the Profile ecosystem · 6 projects

This module allows you to install Drupal sites using custom installation profiles and dynamically enables configuration splits based on the active profile. It resolves conflicts that arise when using multiple installation profiles in a single codebase, ensuring that the correct profile configuration is applied.

This module allows you to dynamically enable and import configuration from a config split, based upon the currently enabled installation profile.

It also allows you to install Drupal from a custom installation profile, overriding the profile that is set in the default core.extension.yml file.

Theoretically, using multi-site Drupal 8, you might want multiple profiles in the same codebase. This allows you to install various sites on your multi-site platform from any one of the profiles. Going a step farther, you likely want configuration for each of the profiles.

There is an issue currently between drupal/core, drupal/config_split, and acquia/blt that isn't allowing config splits at the profile level to work.

The issue, fundamentally, is that a config split model assumes a default set of configuration that is overwritten in the various splits. This works great for single profile models. However with a multi-profile model, this immediately breaks down because drupal/core writes the profile key into core.extensions.yml. The result? As soon as you try to import config on a site with an active profile that is not the profile in core.extensions.yml you get the following error:

The selected installation profile <em class="placeholder">profile_1</em> does not match the profile stored in configuration <em class="placeholder">profile</em>

This module attempts to remedy the situation by filtering the current profile name when Drupal reads or writes to the core.extension file on disk so that the currently installed profile never conflicts with the profile in your default configuration.

Additionally, if you are using `config_split`, it will enable a split that matches the name of your installed profile at run time. This allows you to have configuration specifically enabled per split.

See the Readme.md file for usage instructions including sample configuration

Drupal 8–10 · not 11

Ask your assistant about Profile Split Enable

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

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
Nov 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
2.0.1 Stable 8–10 Nov 16, 2023