Allow single scalar value in EntityReferenceRevisions data type plugin

Created on 12 February 2016, over 8 years ago
Updated 13 January 2024, 6 months ago

Currently EntityReferenceRevisions does not accept a single scalar value. This is a problem for

- Legacy code, which expects a paragraphs field (for example) to accept entity ID
- Migrations, since the entity generation destination plugins only store Entity ID in the map... and therefore only offer entity ID in their ERR field value

Attached patch accepts a scalar value, which is interpreted as the Entity ID. The Revision ID is looked up and added to the field automatically.

The interdiff and the test_only are mainly the same file since I didn't touch anything on the solution.

🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

🇩🇪Germany hctom

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

Merge Requests

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