Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
As far as I'm aware, this is not possible. The cloned entity type is "cloned" from the original, so you can't clone article into page as the code does not change content type.
Comments
Comment #2
madhukar k commentedHey @plato1123. Did you check on the Entity Clone module ?
Comment #3
frobIsn't this the entity clone module?
Comment #4
deaom commentedAs far as I'm aware, this is not possible. The cloned entity type is "cloned" from the original, so you can't clone article into page as the code does not change content type.
Comment #5
mortona2k commentedPerhaps this is a feature request?
Changing bundles programmatically is easy. Load the entity, set the type, save.
The hard part is that fields may be different, and there is no way to map values (yet).
Also, what to do with revisions? (for changed bundles, cloning won't have this problem).