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

Command icon 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

gashunk created an issue. See original summary.

gashunk’s picture

Status: Active » Needs review

Add a hook to remove the slot fields from inline blocks.

hydra’s picture

Status: Needs review » Needs work
hydra’s picture

Status: Needs work » Needs review
harlor’s picture

Status: Needs review » Reviewed & tested by the community

  • harlor committed a74e16e4 on 1.x authored by gashunk
    feat: #3575703 Inline Paragraph blocks can be used for slots.
    
    By:...
harlor’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.