Problem/Motivation

When we are cloning a entity like Node, Block with paragraph references, they're creating new paragraph items for each clone.

But when try to use Clone on Paragraph Library items, they're referencing the same paragraph ID.

Steps to reproduce

Proposed resolution

Create a createDuplicate() function on Paragraph Library item Entity to clone correctly.

Remaining tasks

  • Support clone additional fields on Paragraph Library Item

User interface changes

API changes

Data model changes

Comments

igorbarato created an issue. See original summary.

igor.barato’s picture

StatusFileSize
new1.04 KB
seanb’s picture

Linking #3040556: It is not possible to react to an entity being duplicated since that would allow the paragraphs module to take care of the clones generically when an entity is duplicated.

berdir’s picture

Status: Needs work » Closed (duplicate)

Didn't see this, an implementation for the core hook is being worked on in #3495373: Support duplicate hook

paragraphs module also explicitly supports the replicate module API and implements that.