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.
JSONAPI Extras module allows selecting a field enhancer for "fields" (attributes) of config entities in the admin UI. It, however, does not apply any field enhancer to config entities because config entities have no concept of fields.
This patch is to iterate over the exported attributes of config entities and apply the configured enhancers.
Comment | File | Size | Author |
---|---|---|---|
#10 | jsonapi_extras-config_entities_enhancer-2975925-10.patch | 1.66 KB | sonnykt |
|
Comments
Comment #2
sonnyktComment #3
sonnyktComment #5
sonnyktComment #6
sonnyktComment #7
e0ipsoThis is looking good. We need the other half as well. This is when we transform data coming in so it matches the internal format. This should use the
doTransform(…)
method.Thanks for reporting and for providing a working patch!
Comment #8
e0ipso@sonnykt do you think you'll get a chance to look into this again?
Comment #9
sonnykt@e0ipso sorry I was busy these days. I'll try to submit another patch in next few days.
Comment #10
sonnyktNew patch to apply enhancer on incoming data.
Comment #11
sonnyktComment #13
e0ipsoThanks for the fix @sonnykt! This was a very good catch.
Comment #14
e0ipso