fix: #3622638 Create the missing default profile and text format on install

Closes https://www.drupal.org/project/display_builder/issues/3622638

  • Recipes install modules in syncing mode, so core creates neither the optional config nor the config entities of display_builder: the default profile and the display_builder_html text format were missing.
  • Add a modules_installed hook creating display_builder.profile.default, and filter.format.display_builder_html when Filter is enabled, from the shipped YAML when they are missing. Existing config is never overwritten, and a config import is left alone.
  • Add kernel tests for a recipe install, a normal install, and existing config being kept.

AI-Generated: Yes

Checkpoints

  • File an issue
  • Addition/Change/Update/Fix
  • Testing
  • Automated tests
  • Reviewed by a human
  • Code review by maintainers
Edited by Rajab Natshah

Merge request reports

Loading
Loading