- Issue created by @acbramley
Now that we have 🐛 It is not possible to react to an entity being duplicated Needs work we should implement this hook for layout builder so inline blocks are automatically duplicated. This will also fix 🐛 Duplicating an entity with inline blocks does not duplicate the blocks Active in Drupal CMS once it is on 11.2.
Inline blocks must not be reused between 2 nodes because, by definition, they are only inline to a single entity. Having 2 entities reference the same inline block can break things in many ways, especially with new revisions being created and the inline block usage flow.
Create entity with inline block in layout builder layout
Call createDuplicate() on it.
Implement hook_entity_duplicate in Layout Builder, recurse through sections and duplicate the block.
New hook_entity_duplicate implementation in LB.
Active
11.0 🔥
layout_builder.module