Issue #2575741 by Berdir: Priority of serialialization EntityReferenceFieldItemNormalizer must be lower than the one from hal
parent
1c3bfd3bbd
commit
cc1459949f
|
@ -24,7 +24,10 @@ services:
|
|||
serializer.normalizer.entity_reference_field_item:
|
||||
class: Drupal\serialization\Normalizer\EntityReferenceFieldItemNormalizer
|
||||
tags:
|
||||
- { name: normalizer, priority: 10 }
|
||||
# Set the priority lower than the hal entity reference field item
|
||||
# normalizer, so that we do not replace that for hal_json.
|
||||
# @todo Find a better way for this in https://www.drupal.org/node/2575761.
|
||||
- { name: normalizer, priority: 5 }
|
||||
serializer.normalizer.list:
|
||||
class: Drupal\serialization\Normalizer\ListNormalizer
|
||||
tags:
|
||||
|
|
Loading…
Reference in New Issue