JSON:API (Core) 8.8x breaks enhancers on relationships

Created on 30 December 2019, over 5 years ago
Updated 2 April 2025, 8 days ago

JSON:API in Drupal core 8.8.x introduced a way of normalizing reference fields by treating them as relationships (see #3036285: Add a \JsonApiResource\Relationship object to carry relationship data, metadata and a link collection. and associated change record https://www.drupal.org/node/3084710 ) instead of fields.

Thus reference fields are no longer seen as "fields" when normalized and are managed by a new RelationshipNormalizer which is not decorated by jsonapi_extra.

As a result, any field enhancer associated to a reference field won't be picked up and won't work.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇨🇦Canada garphy

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.71.5 2024