Individual block instances are no longer restricted

Created on 3 May 2024, about 2 months ago

Problem/Motivation

In #3068722: Don't allow block restrictions for individual content blocks β†’ (added 4 years ago), this module made the decision not to restrict Layout Builder Styles for individual block instances.

In Drupal 10.1, per https://www.drupal.org/node/3320855 β†’ , the internal name for these types of blocks changed from "Custom" to "Content." This resulted in the existing code to cease working:

    // Remove individual reusable blocks from list.
    unset($blockDefinitions['Custom']);

Steps to reproduce

1. Create a content block.
2. Configure a Layout Builder Style.
3. Under the "Block restrictions" section, there should not be a section titled "Content blocks" but there is.

Proposed resolution

Restore the previous skipping of restricting Layout Builder Styles to apply only to specific content blocks by updating references from "Custom" to "Content."

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mark_fullmer Tucson

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024