Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Some entity reference fields store additional values. We need to handle its.
Image:
- title
- alt
- width (computed)
- height (computed)
File:
- display
- description
Entity reference revision (for paragraph):
- reference revision
Dynamic entity reference :
- entity type
First, we need the JSON API to output these values, see #2860886: Special fields on entity reference.
Comments
Comment #5
GrimreaperImage, file and dynamic entity reference fields are ok with the meta in JSON API.
For entity reference revision fields, as we do not create a new revision automatically, if a new revision has been created on the server site it could lead to a wrong entity revision referenced. So we always target the last revision id of the entity on the client site.