Individual block instances are no longer restricted

Created on 3 May 2024, 7 months ago
Updated 6 August 2024, 4 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

RTBC

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.71.5 2024