This feature exists in the D7 branch, added via #1590146: Clone referenced entities.

Quoting myself:

Should be easier in D8 since all entities have a createDuplicate() method we can use. The actual functionality should also be called "Duplicate" to match D8 terminology. I went with "Clone" in D7 because that's what the Entity API module used.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bojanz created an issue. See original summary.

bojanz credited ilya.no.

bojanz’s picture

Status: Active » Needs review
FileSize
9.12 KB

ilya.no uploaded this patch to the closed D7 issue, moving it here.

Status: Needs review » Needs work

The last submitted patch, 3: 1590146-77-duplicate-entity-d8-dev.patch, failed testing. View results

nkoporec’s picture

Status: Needs work » Needs review
FileSize
9.63 KB

Created reroll of ilya.no patch so it can be applied to latest branch.

maaty388’s picture

Status: Needs review » Reviewed & tested by the community

Works perferctly, marking as RTBC

bojanz’s picture

Assigned: Unassigned » bojanz
Status: Reviewed & tested by the community » Needs work

This patch has no tests.

  • bojanz committed f94bbca on 8.x-1.x
    Issue #2962706 by bojanz, nkoporec, ilya.no: Add the ability to...
bojanz’s picture

Status: Needs work » Fixed

Test added.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.