Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recipe tries to install unknown blocks for Drupal 11 #3

Open
agentrickard opened this issue Oct 3, 2024 · 1 comment
Open

Recipe tries to install unknown blocks for Drupal 11 #3

agentrickard opened this issue Oct 3, 2024 · 1 comment

Comments

@agentrickard
Copy link

This may be Drupal 11 only, testing with Gin 8.x-3.0-rc13, which is what the recipe installs.

Drupal 11.0.4

Gin ships with the following blocks:

  • block.block.gin_breadcrumbs.yml
  • block.block.gin_content.yml
  • block.block.gin_help.yml
  • block.block.gin_local_actions.yml
  • block.block.gin_messages.yml
  • block.block.gin_page_title.yml
  • block.block.gin_primary_local_tasks.yml
  • block.block.gin_secondary_local_tasks.yml

The Recipe tries to install / set:

  • block.block.gin_admin
  • block.block.gin_branding
  • block.block.gin_local_actions
  • block.block.gin_local_tasks
  • block.block.gin_page_title
  • block.block.gin_primary_local_tasks
  • block.block.gin_tools

The inclusion of unknown blocks causes installation to fail.

@thejimbirch
Copy link
Contributor

@agentrickard Thanks for the issue. This is not an 11.x problem, it is a Drupal 8+ issue that is exposed by switching themes using a recipe.

Gin ships with those blocks, but they are optional configuration. What takes precedent are the blocks that get duplicated from the active theme.

When you switch themes, Drupal core copies all of the blocks from the existing theme to the new theme. This recipe was created before you could install Drupal with no profile. You had to start with a profile, the most common, Standard and Minimal in Drupal core. Those profiles use different themes for the admin theme, and unfortunately, they have different blocks also

After attempting a solution for this recipe that would work for both Standard profile (Claro admin theme) and Minimal profile (Stark admin theme), we settled on just supporting the minimal profile until the core issue can be fixed.

We have an issue in the Recipes queue here about the block duplication problem:
https://www.drupal.org/project/distributions_recipes/issues/3372078

The underlying core issue is here:
https://www.drupal.org/project/drupal/issues/3105597

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants