Layout Builder Block Copy
This module adds a "Copy block" button to Drupal's Layout Builder interface. This allows users to duplicate any inline block within a section, creating a completely independent copy that can be edited or deleted without affecting the original.
Layout Builder Block Copy adds a Copy block action to Drupal's Layout Builder, allowing content editors to duplicate any inline block within the same section with a single click.
Unlike shallow-clone approaches, this module performs a deep clone: each copy becomes a brand-new, fully independent block_content entity. Editing a copied block never affects the original, and deleting the original never removes the copy.
Features
- One-click duplication from the block's contextual menu in Layout Builder edit mode
- Deep cloning — copies are new
block_contententities, not references - Full independence between original and copy in both directions
- Compatible with the Quick Node Clone module — cloned nodes receive their own independent block entities
- No contrib dependencies beyond Drupal core
Requirements
- Drupal 10.3 or higher (Drupal 11 compatible)
- Core Layout Builder module must be enabled
Compared to Layout Builder Block Clone
This module was created to address known issues in the similar Layout Builder Block Clone project, including shallow cloning behavior and Drupal 11 incompatibility.