layout_builder_block_copy 1.0.8

Bug fixes

Bug fix: resolved a PHPStan static analysis error where casting a mixed-typed block_id
configuration value directly to string was not permitted. An is_scalar() guard is now used to
narrow the type before casting. No behavior change.

layout_builder_block_copy 1.0.7

Bug fixes

Bug fix: resolved a PHPStan type error where block_content entity IDs read from component configuration were typed as mixed, causing a static analysis failure. The value is now explicitly cast to string before being passed to EntityStorageBase::load(). No behavior change.

layout_builder_block_copy 1.0.6

Bug fixes

Bug fixes

  • Copied blocks now appear directly below the source block instead of at the
    end of the region.
  • Fixed an unhandled exception when copying a block from a stale or replayed
    contextual link (e.g. two editors open at once).
  • If the layout tempstore write fails after a block entity has already been
    saved, the orphaned entity is now deleted automatically.

Improvements

  • Copying a reusable block now shows a warning that the copy references the
    same content — editing either will affect both.

layout_builder_block_copy 1.0.5

Bug fixes

Fix PHPStan offset access errors in hook_preprocess_block(): write-back now routes through typed local arrays instead of nested mixed offset access.

layout_builder_block_copy 1.0.4

Bug fixes

Fix PHPStan type errors in hook_preprocess_block(): add explicit is_array() and is_string() guards so nested array offset access is properly type-narrowed.

layout_builder_block_copy 1.0.3

Bug fixes

Bug fixes

  • Declare drupal:block_content as an explicit module dependency; the module imports BlockContentInterface from that module and must require it.
  • Fix block usage tracking for copied inline blocks: the cloned entity's ID is now written to the component configuration, ensuring orphan cleanup targets the copy and not the original.

layout_builder_block_copy 1.0.1

Bug fixes

Add composer.json packaging metadata for Drupal.org compatibility display.

layout_builder_block_copy 1.0.0

New features

Adds a "Copy block" action to the Layout Builder block contextual menu. Copied blocks are fully independent — editing a copy never affects the original.

- Deep clone: creates a new independent block_content entity per copy
- Copies the current state of the block, not the original revision
- No contrib dependencies beyond Drupal core Layout Builder
- Requires Drupal 10.3+ or Drupal 11

layout_builder_block_copy 1.0.x-dev

Bug fixes
New features

Initial release of Layout Builder Block Copy.

Adds a "Copy block" action to the Layout Builder contextual menu. Copied blocks are fully independent — editing a copy never affects the original block.

Key features:
- Deep clone: creates a new independent block_content entity
- Copies the current state of the block, not the original revision
- No contrib dependencies — requires only Drupal core Layout Builder
- Requires Drupal 10.3+ or Drupal 11

Subscribe with RSS Subscribe to Releases for Layout Builder Block Copy