- Issue created by @mrconnerton
- Merge request !533454234: Restrict normalizers to custom_field data types. β (Open) created by mrconnerton
- Status changed to Needs review
16 days 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
13 days 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, ]; }