Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295817

Make Layout Builder Create Inline blocks logic optional

$
0
0

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's ChooseBlockController 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


Viewing all articles
Browse latest Browse all 295817

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>