Problem
The ResourceFieldEnhancer doesn't get any context passed along. Similar to https://www.drupal.org/project/jsonapi_extras/issues/3062259
Solution
At least pass along a uuid (better would be the entity object itself) of the parent entity, so that the field can be transformed appropriately.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3077186-2-pass-context-in-resource_object_normalizer.patch | 2.72 KB | siegrist |
Comments
Comment #2
siegristPass the object along as context. Field name is discussable.
Comment #3
siegristComment #4
e0ipsoComment #5
e0ipso