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 PatchImplement PatchWrite TestsWrite 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