feat: #3614696 Let each site template install and set its own front-end and admin themes

Issue: https://www.drupal.org/project/varbase/issues/3614696

Empties the profile's themes: list, so each site template installs and sets its own front-end and admin themes. varbase_starter sets vartheme_bs5, educare sets vartheme_bs5_educare, horizonaid sets its own; gin is installed by varbase_admin_base and set as the admin theme by drupal_cms_admin_ui. Both are applied by every site template, so the profile does not need to install either.

The key is kept as an explicit empty list rather than removed, because install_profile_info() injects Stark when a profile declares no themes. This is the same approach drupal_cms_installer takes.

The installer is unaffected: distribution.install.theme is varbase_installer_theme, whose base theme is claro.

Verified from a dropped database, both site templates: correct default theme, admin: gin with Gin assets rendering on /admin/content, no Stark installed, front page 200.

AI-Generated: Yes

Checkpoints:

  • File an issue
  • Addition/Change/Update/Fix
  • Testing to ensure no regression
  • Automated unit testing coverage
  • Automated functional testing coverage
  • UX/UI designer responsibilities
  • Readability
  • Accessibility
  • Performance
  • Security
  • Developer Documentation
  • User Guide Documentation
  • Reviewed by human
  • Code review by maintainers
  • Full testing and approval
  • Credit contributors
  • Review with the product owner
  • Release notes snippet
  • Release
Edited by Rajab Natshah

Merge request reports

Loading