Problem/Motivation

When placing block on a page, you can set the block machine name. But the configuration of this block depends on the theme you place your block in.

On the same websites, if there are multiple themes, you can't place the same block on another theme with the same machine name because it is already used.

Proposed resolution

Replace blocks machine name, for example:

core/profiles/demo_umami/config/install/block.block.languageswitcher.yml => core/profiles/demo_umami/config/install/block.block.umami_languageswitcher.yml

Remaining tasks

Comments

Grimreaper created an issue. See original summary.

grimreaper’s picture

Assigning the issue to myself, I will delegate it to beginners in my company to mentor them.

grimreaper’s picture

Issue tags: +DevDaysTransylvania

Tagging.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

grimreaper’s picture

Issue tags: +DrupalCon Amsterdam 2019
grimreaper’s picture

Assigned: grimreaper » Unassigned
Status: Active » Needs review
StatusFileSize
new6.19 KB

Manually tested, there is no visual regression because CSS is based on classes and only id attribute is based on the block config ID.

Thanks for the review.

rachel_norfolk’s picture

Issue tags: -DrupalCon Amsterdam 2019 +Amsterdam2019

retagging

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

markconroy’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -DevDaysTransylvania, -Amsterdam2019 +Europe2020

Thanks for working on this @Grimreaper and @rachel_norfolk

Marking as RTBC

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed c9466a9 and pushed to 9.2.x. Thanks!

  • alexpott committed c9466a9 on 9.2.x
    Issue #3061267 by Grimreaper: Update blocks machine name to be prefixed...
grimreaper’s picture

Hello,

Thanks @markconroy for RTBC and @alexpott for the merge!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.