Allow fields implementing EntityReferenceFieldItemListInterface to clone their referenced entities

Created on 13 November 2018, over 5 years ago
Updated 20 June 2023, about 1 year ago

Currently only a fixed set of field type can clone their referenced entities: 'entity_reference' and 'entity_reference_revisions'. I have a field type which extends EntityReferenceRevisionsFieldItemList and therefore have a different field type id. If we check that the field implements EntityReferenceFieldItemListInterface we can cover both 'entity_reference' and 'entity_reference_revisions' plus any other field implementing that interface.

Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom NiCo_O London

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024