Closed (won't fix)
Project:
Dynamic Entity Reference
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
17 Apr 2023 at 00:33 UTC
Updated:
6 Aug 2025 at 23:38 UTC
Jump to comment: Most recent
Comments
Comment #2
larowlanah we'll need a dep on the contrib module
Comment #3
acbramley commentedWe have https://git.drupalcode.org/project/drupal/-/blob/10.1.x/core/modules/ser... - can we not use that?
Comment #5
acbramley commentedWe obviously need tests for this too
Comment #6
jibranNow that hal is in contrib. Let's move service to hal.
Comment #7
jibranMight be duplicate of #3350347: Declaration of DynamicEntityReferenceItemNormalizer::normalize() must be compatible
Comment #8
jibranCan we please have a suggestion on #6? Assigning it to Lee as he is HAL module maintainer.
Comment #9
larowlanHEAD tests are fixed now, let's see how it goes
Comment #10
codebymikey commentedComment #11
eelkeblokI am havind trouble getting this change to work. AFAICT, the class is named EntityReferenceFieldItemNormalizer, not EntityReferenceItemNormalizer. Am I missing something?
Comment #12
acbramley commented#11 is right, I can't see that class in 10.1.x or 11.x. How did tests pass??
Comment #13
eelkeblokWondered the same, but the obvious answer is: this is not tested. :) There is actually more information in the companion/duplicate issue, #3350347: Declaration of DynamicEntityReferenceItemNormalizer::normalize() must be compatible, although I agree that the "correct" answer is to remove the dependency entirely.
I created a new branch that "corrects" the name of the base class, but as noted in the other issue, it is actually quite different, so I guess the other issue may be the correct solution for the short term, while this one serves as a better, future solution.
Comment #14
jibranI'm closing this in favor of #3414197: Add DynamicEntityReferenceItemNormalizer in the HAL issue.
Comment #15
berdirNote to others: the normalizer was completely removed in #3377096: [DER] Fix GitLab CI , so latest dev shouldn't have this problem.
Also, double-check that you _really_ need hal module. Maybe you still have it installed because you use default_content 1.x or something else that used to depend on it? You should only get this error if you have that module installed.