Problem/Motivation

Was any consideration given to using the built in entity duplication API in core.

E.g. http://cgit.drupalcode.org/entity_clone/tree/src/EntityClone/Content/Con...

Could just do this

$cloned_entity = $cloned_entity->createDuplicate();
$cloned_entity->save();

There is a fair bit of logic in ::createDuplicate that isn't covered by this module

Contrib modules have their own implementations - e.g. paragraphs http://cgit.drupalcode.org/paragraphs/tree/src/Entity/Paragraph.php?h=8....

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

larowlan created an issue. See original summary.

larowlan’s picture

Issue summary: View changes

Another reason for doing this http://cgit.drupalcode.org/paragraphs/tree/src/Entity/Paragraph.php?h=8....

Paragraphs already supports deep-duplication of nested paragraphs.

larowlan’s picture

Status: Active » Closed (works as designed)

Never mind, it already does, I was looking in the wrong spot