Layout Builder Create Inline blocks logic should be optional

Created on 4 November 2024, 5 months ago

Problem/Motivation

In #2968500: Change inline blocks workflow in Layout Builder to match mocks β†’ , the link to allow to create inline blocks in Layout Builder was introduced. to make easier the process to add new inline blocks to LB.

However, that logic cannot be disabled, forcing to have that link in every Layout Builder Choose Block Controller instance.

Since Navigation is using Layout Builder and we don't want to allow Site Administrators to add new inline blocks to the Navigation bar, would be great to make this feature optional

Steps to reproduce

  • Install a Standard Profile Drupal Site
  • Enable Navigation
  • Go to the Navigation Blocks config page (/admin/config/user-interface/navigation-block)
  • Try to add a new block to the Navigation
  • Confirm that unwanted link is there

Proposed resolution

Add an extra optional parameter to SectionStorage Annotation/Attribute that would allow to opt out this feature.
By default, the link should be visible to avoid UI regressions.

Remaining tasks

  • Define Patch
  • Implement Patch
  • Write Tests
  • Write Change Record

User interface changes

Create Inline block will be removed for those Layout Builder Section Storage that will opt out that feature.

Introduced terminology

API changes

New parameter in SectionStorage Annotation/Attribute

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component

layout_builder.module

Created by

πŸ‡ͺπŸ‡ΈSpain plopesc Valladolid

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