Description
Like the base theme system, we are now able to create a sub-profile in order to inherit the dependencies and functionalities of a base profile. This would allow multiple profiles to share common modules, themes and configurations with minimal override/customization on individual sites.
Example
name: My Profile
type: profile
description: 'My install profile.'
core_version_requirement: '^9.2'
base profile: standard
name: My Profile
type: profile
description: 'My install profile.'
core_version_requirement: '^9.2'
base profile: standard
This also allows organizations to distribute a base profile with custom modules or themes included and sub-profiles can have access to those modules as any the sub-profile brings along.
Given the following:
docroot
- profiles
- base_custom_profile
-modules
- base_custom_module
- base_custom_module.info.yml
- themes
- base_custom_theme
- base_custom_theme.info.yml
- sub_custom_profile
- sub_custom_profile.info.yml (declares "base profile: base_custom_profile")
- themes
- sub_custom_theme
- sub_custom_theme.info.yml (declares "base theme: base_custom_theme")
A site installed with "sub_custom_profile" will see "base_custom_profile" installed in its extension list and will be able to enable "base_custom_module". Its theme "sub_custom_theme" will also be able to inherit templates and libraries from its base theme "base_custom_theme" .