A machine-readable guide to this site for AI agents and language models is available at/llms.txt(https://dev.acquia.com/llms.txt on the production site).
sync configuration.The following outline explains how to implement Config Split for multisite or profile-based architectures. Adjust the directory paths and machine names to match your codebase.
For site splits, set the split status to Inactive and activate it in the settings.php of each site:
$config['config_split.config_split.site_a']['status'] = TRUE;For profile splits, install the Profile Split Enable module and ensure the machine name of each split matches the machine name of its corresponding installation profile.
If you are managing multiple custom profiles, visit multiple profiles workaround.
Add profile_split_enable as a dependency in the .info.yml file of your profile:
# example_profile/example_profile.info.yml
name: 'Example Profile'
type: profile
description: 'Example custom sub-profile.'
version: 1.0.0
base profile: standard
dependencies:
- profile_split_enableVerify that profile_split_enable is enabled in core.extension.yml so that it remains active before and after configuration imports:
# core.extension.yml
module:
config_split: 0
profile_split_enable: 0drush config:export (drush cex) to export your default configuration, including the split definitions (config_split.config_split.[split_name].yml) into your primary sync directory.config-split:export [split_name] or drush csex [split_name] for each split to write its overridden or conditional configuration into its respective directory.For existing codebases, ensure that an update hook is included that runs on all existing sites during deployments to enable the profile_split_enable module.