Skip to content
Snippets Groups Projects
Commit cc145994 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2575741 by Berdir: Priority of serialialization...

Issue #2575741 by Berdir: Priority of serialialization EntityReferenceFieldItemNormalizer must be lower than the one from hal
parent 1c3bfd3b
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,10 @@ services: ...@@ -24,7 +24,10 @@ services:
serializer.normalizer.entity_reference_field_item: serializer.normalizer.entity_reference_field_item:
class: Drupal\serialization\Normalizer\EntityReferenceFieldItemNormalizer class: Drupal\serialization\Normalizer\EntityReferenceFieldItemNormalizer
tags: 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: serializer.normalizer.list:
class: Drupal\serialization\Normalizer\ListNormalizer class: Drupal\serialization\Normalizer\ListNormalizer
tags: tags:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment