- Issue created by @mrconnerton
- Merge request !533454234: Restrict normalizers to custom_field data types. β (Open) created by mrconnerton
- Status changed to Needs review
6 months ago 4:38pm 12 June 2024 - πΊπΈUnited States mrconnerton
Created a MR for the basic update. Will continue testing locally, but initial errors have gone away and json:api results are returning properly now.
- πΊπΈUnited States apmsooner
Thanks for the patch. The EntityReferenceNormalizer however also supports CustomFieldImage so would either need to revise this to support both types or split that off into its own separate normalizer. Open to further review.
- Status changed to Needs work
6 months ago 3:18pm 15 June 2024 - πΊπΈUnited States apmsooner
btw, i guess this is an oversight around Drupal 9 compatibility as those errors aren't happening in Drupal 10 because of this function:
/** * {@inheritdoc} */ public function getSupportedTypes(?string $format): array { return [ CustomFieldEntityReference::class => TRUE, CustomFieldImage::class => TRUE, ]; }
- Status changed to Closed: won't fix
3 months ago 4:36pm 19 September 2024 - πΊπΈUnited States apmsooner
This is only an issue in the 2.x version which I'm no longer supporting due to the extent of api changes between versions. If someone comes across this issue for 2.x... the attached patch should work for you but highly encourage updating your site to latest core and switching to the 3.x module cause its way more feature rich.