Layout Builder Override Remove
layout_builder_override_removeRevert a Layout Builder override for an entity so it uses the default layout again. Provide entity_id to clear one, or omit it to list overridden entities in a bundle.
Instructions
Remove a Layout Builder override so an entity falls back to the default.
Pass entity_id (for a node, its nid) to revert that one entity.
Omit it to list the entities of this bundle that currently carry an
override, which is what you need before you can pick one.
Reverting clears the entity's layout_builder__layout field through
OverridesSectionStorage, which is where Drupal keeps overrides -
they are not config and cannot be read from entity_view_display.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bundle | Yes | ||
| entity_id | No | ||
| entity_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||