Issue #2575741 by Berdir: Priority of serialialization EntityReferenceFieldItemNormalizer must be lower than the one from hal

8.0.x
Alex Pott 2015-10-05 15:13:46 +01:00
parent 1c3bfd3bbd
commit cc1459949f
1 changed files with 4 additions and 1 deletions

View File

@ -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: