Problem/Motivation
When placing an inline block in Layout Builder, slot options can be configured for that block.
If slots are enabled on an inline block, the slot is used internally but the block does not appear in the custom block library.
This leads to inconsistent behavior, since slot-enabled blocks are expected to be reusable and visible in the block library. Inline blocks are layout-scoped and should not expose slot configuration.
Steps to reproduce
1. Enable Layout Builder and the Slots module.
2. Place an inline block inside a layout.
3. Configure slot options for the inline block.
4. Check the custom block library.
Result: The slot is used, but the block does not appear in the block library.
Proposed resolution
Disable slot configuration options for inline blocks in Layout Builder.
Slot options should only be available for reusable custom block entities that are stored in the block library.
Remaining tasks
- Prevent slot configuration from appearing on inline blocks.
- Ensure existing inline blocks with slot configuration do not break.
User interface changes
Slot configuration options will no longer be visible when editing inline blocks in Layout Builder.
Issue fork slots-3575703
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
gashunk commentedAdd a hook to remove the slot fields from inline blocks.
Comment #4
hydra commentedComment #5
hydra commentedComment #6
harlor commentedComment #8
harlor commented