Add a rule on block machine name

Created on 12 June 2019, about 5 years ago
Updated 1 February 2023, over 1 year ago

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

A best practice would be to prefix block machine name by the machine name of the theme it is in.

For example: block.block.bartik_help.yml

Remaining tasks

  • Review patch
  • Update core umami and testing modules
✨ Feature request
Status

Closed: won't fix

Version

3.0

Component

Coder Sniffer

Created by

πŸ‡«πŸ‡·France Grimreaper France πŸ‡«πŸ‡·

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¦πŸ‡ΉAustria klausi πŸ‡¦πŸ‡Ή Vienna

    Thanks, then I'll close this as won't fix for the time being. We can always considers this later again if needed.

Production build 0.69.0 2024