- Issue created by @mark_fullmer
- Merge request !25Issue #3445139 by mark_fullmer: Individual block instances are no longer restricted β (Open) created by mark_fullmer
- Status changed to Needs review
about 2 months ago 3:34pm 3 May 2024
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']);
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.
Restore the previous skipping of restricting Layout Builder Styles to apply only to specific content blocks by updating references from "Custom" to "Content."
Needs review
2.0
Code