Remove unused Drupal\jsonapi\Normalizer\EntityReferenceFieldNormalizer

Created on 8 February 2023, over 1 year ago
Updated 14 February 2023, over 1 year ago

Problem/Motivation

#3036285: Add a \JsonApiResource\Relationship object to carry relationship data, metadata and a link collection. removed Drupal\jsonapi\Normalizer\EntityReferenceFieldNormalizer and the associated serializer.normalizer.entity_reference_field.jsonapi service, which registered that class as a JSON:API normalizer.

When that landed, #3014277: ResourceTypes should know about their fields needed a re-roll which was done and it was committed shortly after. The re-roll, however, re-introduced Drupal\jsonapi\Normalizer\EntityReferenceFieldNormalizer but not the associated service.

Because of the missing service, the class is now actually unused, so presumably re-introducing it was accidental and caused by a faulty re-roll. There was no discussion of this, which underlines that assumption.

Steps to reproduce

-

Proposed resolution

Remove Drupal\jsonapi\Normalizer\EntityReferenceFieldNormalizer.

Remaining tasks

-

User interface changes

-

API changes

-

Data model changes

-

Release notes snippet

-

🐛 Bug report
Status

Needs work

Version

10.1

Component
JSON API 

Last updated 1 day ago

Created by

🇩🇪Germany tstoeckler Essen, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024