Closed (fixed)
Project:
Custom Field
Version:
4.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Jun 2026 at 17:06 UTC
Updated:
17 Jun 2026 at 16:55 UTC
Jump to comment: Most recent
I am using Custom Field and JSON:API on a decoupled site, I installed JSON:API Image Styles to add image styles to my decoupled front end, but this doesn't work with Custom Field's JSON:API integration.
Add support for JSON:API Image Styles to custom_field_jsonapi.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
longwaveThis MR was assisted by Claude Code.
Comment #4
apmsooner commentedDave, I think this would error if media is disabled though?
Comment #5
longwaveWhere will the error be?
usestatements andinstanceofare safe if the class doesn't exist: https://3v4l.org/vnJHpComment #6
apmsooner commentedYeah, thanks for the assurance. Okay, I'll review in a little bit and get it through. Thanks for the commit.
Comment #7
apmsooner commentedNoting that 'image' sub-fields were already supported as the normalizer was already recognizing the base field added by jsonapi_image_styles. Testing this out now verifies that entity_reference sub-fields of type 'media' are now also including the styles.
Thanks @longwave!