Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293902

Themes installed by recipes have incorrect/duplicate block config when applied to a site that has an existing theme

$
0
0

Problem/Motivation

I am building a recipe to for a basic startup of new projects. I want to use "minimal" profile and then enable claro and other modules. When using recipes, it seems because the installation of the extension happens in a separate step as the configuration, Drupal core will duplicate Stark's (minimal's default theme) blocks. Even by specifying the configs in recipe.yml doesn't help because in the end I have both sets of blocks

Steps to reproduce

- Fresh install with minimal profile
- Simple recipe with claro
- Optionally specify config section in recipe.yml to import Claro's config (must skip help because of dependency)

Proposed resolution

Not sure yet, but maybe if I am importing configs provided by the extension, they could be imported during installation?

Note: the code that performs the block duplication runs after any module/theme/profile installation, except during site installation: https://git.drupalcode.org/project/drupal/-/blob/9.5.3/core/modules/bloc...


Viewing all articles
Browse latest Browse all 293902

Trending Articles