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.

Comments

Siegrist created an issue. See original summary.

siegrist’s picture

Pass the object along as context. Field name is discussable.

siegrist’s picture

Status: Active » Needs review
e0ipso’s picture

Thanks for contributing @Siegrist! This module is better and more useful thanks to you. Open source maintainers need contributions to keep up. ❤️
e0ipso’s picture

Status: Needs review » Fixed

  • e0ipso committed ef0714c on 8.x-3.x authored by Siegrist
    Issue #3077186 by Siegrist, e0ipso: Pass context in...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.