You are here

serialization.services.yml in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/modules/serialization/serialization.services.yml
core/modules/serialization/serialization.services.yml

File

core/modules/serialization/serialization.services.yml
View source
  1. services:
  2. serializer:
  3. class: Symfony\Component\Serializer\Serializer
  4. arguments: [{ }, { }]
  5. serializer.normalizer.config_entity:
  6. class: Drupal\serialization\Normalizer\ConfigEntityNormalizer
  7. tags:
  8. - { name: normalizer }
  9. arguments: ['@entity.manager']
  10. serializer.normalizer.content_entity:
  11. class: Drupal\serialization\Normalizer\ContentEntityNormalizer
  12. tags:
  13. - { name: normalizer }
  14. arguments: ['@entity.manager']
  15. serializer.normalizer.entity:
  16. class: Drupal\serialization\Normalizer\EntityNormalizer
  17. tags:
  18. - { name: normalizer }
  19. arguments: ['@entity.manager']
  20. serializer.normalizer.complex_data:
  21. class: Drupal\serialization\Normalizer\ComplexDataNormalizer
  22. tags:
  23. - { name: normalizer }
  24. serializer.normalizer.entity_reference_field_item:
  25. class: Drupal\serialization\Normalizer\EntityReferenceFieldItemNormalizer
  26. tags:
  27. # Set the priority lower than the hal entity reference field item
  28. # normalizer, so that we do not replace that for hal_json.
  29. # @todo Find a better way for this in https://www.drupal.org/node/2575761.
  30. - { name: normalizer, priority: 5 }
  31. serializer.normalizer.list:
  32. class: Drupal\serialization\Normalizer\ListNormalizer
  33. tags:
  34. - { name: normalizer }
  35. serializer.normalizer.password_field_item:
  36. class: Drupal\serialization\Normalizer\NullNormalizer
  37. arguments: ['Drupal\Core\Field\Plugin\Field\FieldType\PasswordItem']
  38. tags:
  39. - { name: normalizer, priority: 20 }
  40. serializer.normalizer.safe_string:
  41. class: Drupal\serialization\Normalizer\MarkupNormalizer
  42. tags:
  43. - { name: normalizer }
  44. serializer.normalizer.typed_data:
  45. class: Drupal\serialization\Normalizer\TypedDataNormalizer
  46. tags:
  47. - { name: normalizer }
  48. serializer.encoder.json:
  49. class: Drupal\serialization\Encoder\JsonEncoder
  50. tags:
  51. - { name: encoder, format: json }
  52. serializer.encoder.xml:
  53. class: Drupal\serialization\Encoder\XmlEncoder
  54. tags:
  55. - { name: encoder, format: xml }
  56. serializer.entity_resolver:
  57. class: Drupal\serialization\EntityResolver\ChainEntityResolver
  58. serializer.entity_resolver.uuid:
  59. class: Drupal\serialization\EntityResolver\UuidResolver
  60. tags:
  61. - { name: entity_resolver}
  62. arguments: ['@entity.manager']
  63. serialization.entity_resolver.target_id:
  64. class: Drupal\serialization\EntityResolver\TargetIdResolver
  65. tags:
  66. - { name: entity_resolver}