You are here

jsonapi_schema.services.yml in JSON:API Schema 8

File

jsonapi_schema.services.yml
View source
  1. services:
  2. jsonapi_schema.static_data_definition_extractor:
  3. class: Drupal\jsonapi_schema\StaticDataDefinitionExtractor
  4. arguments: ['@typed_data_manager', '@config.typed', '@entity_field.manager']
  5. # ----------------------------------------------------------------------------
  6. # - NORMALIZERS
  7. # ----------------------------------------------------------------------------
  8. serializer.normalizer.complex_data_definition.schema_json:
  9. class: Drupal\jsonapi_schema\Normalizer\ComplexDataDefinitionNormalizer
  10. tags:
  11. - { name: normalizer, priority: 20 }
  12. serializer.normalizer.field_definition.schema_json:
  13. class: Drupal\jsonapi_schema\Normalizer\FieldDefinitionNormalizer
  14. tags:
  15. - { name: normalizer, priority: 30 }
  16. serializer.normalizer.relationship_field_definition.schema_json:
  17. class: Drupal\jsonapi_schema\Normalizer\RelationshipFieldDefinitionNormalizer
  18. arguments: ['@plugin.manager.field.field_type']
  19. tags:
  20. - { name: normalizer, priority: 35 }
  21. serializer.normalizer.list_data_definition.schema_json:
  22. class: Drupal\jsonapi_schema\Normalizer\ListDataDefinitionNormalizer
  23. tags:
  24. - { name: normalizer, priority: 20 }
  25. # Data definition normalizers.
  26. serializer.normalizer.data_definition.schema_json.string:
  27. class: Drupal\jsonapi_schema\Normalizer\DataDefinitionStringNormalizer
  28. tags:
  29. - { name: normalizer, priority: 10 }
  30. serializer.normalizer.data_definition.schema_json.email:
  31. class: Drupal\jsonapi_schema\Normalizer\DataDefinitionEmailNormalizer
  32. tags:
  33. - { name: normalizer, priority: 10 }
  34. serializer.normalizer.data_definition.schema_json.datetime_iso8601:
  35. class: Drupal\jsonapi_schema\Normalizer\DataDefinitionDatetimeNormalizer
  36. tags:
  37. - { name: normalizer, priority: 10 }
  38. serializer.normalizer.data_definition.schema_json.entity_reference:
  39. class: Drupal\jsonapi_schema\Normalizer\DataDefinitionEntityReferenceNormalizer
  40. tags:
  41. - { name: normalizer, priority: 10 }
  42. serializer.normalizer.data_definition.schema_json.timestamp:
  43. class: Drupal\jsonapi_schema\Normalizer\DataDefinitionTimestampNormalizer
  44. tags:
  45. - { name: normalizer, priority: 10 }
  46. serializer.normalizer.data_definition.schema_json.undefined:
  47. class: Drupal\jsonapi_schema\Normalizer\DataDefinitionUndefinedNormalizer
  48. tags:
  49. - { name: normalizer, priority: 10 }
  50. serializer.normalizer.data_definition.schema_json.fallback:
  51. class: Drupal\jsonapi_schema\Normalizer\DataDefinitionNormalizer
  52. tags:
  53. - { name: normalizer, priority: 5 }