hal.services.yml
Same filename in other branches
File
-
core/
modules/ hal/ hal.services.yml
View source
- services:
- serializer.normalizer.entity_reference_item.hal:
- class: Drupal\hal\Normalizer\EntityReferenceItemNormalizer
- arguments: ['@hal.link_manager', '@serializer.entity_resolver', '@entity_type.manager']
- tags:
- - { name: normalizer, priority: 10 }
- serializer.normalizer.field_item.hal:
- class: Drupal\hal\Normalizer\FieldItemNormalizer
- tags:
- - { name: normalizer, priority: 10 }
- serializer.normalizer.field.hal:
- class: Drupal\hal\Normalizer\FieldNormalizer
- tags:
- - { name: normalizer, priority: 10 }
- serializer.normalizer.file_entity.hal:
- class: Drupal\hal\Normalizer\FileEntityNormalizer
- arguments: ['@entity_type.manager', '@hal.link_manager', '@module_handler', '@config.factory', '@entity_type.repository', '@entity_field.manager']
- tags:
- - { name: normalizer, priority: 20 }
- serializer.normalizer.timestamp_item.hal:
- class: Drupal\hal\Normalizer\TimestampItemNormalizer
- tags:
- # Priority must be higher than serializer.normalizer.field_item.hal.
- - { name: normalizer, priority: 20, bc: bc_timestamp_normalizer_unix, bc_config_name: 'serialization.settings' }
- serializer.normalizer.entity.hal:
- class: Drupal\hal\Normalizer\ContentEntityNormalizer
- arguments: ['@hal.link_manager', '@entity_type.manager', '@module_handler', '@entity_type.repository', '@entity_field.manager']
- tags:
- - { name: normalizer, priority: 10 }
- serializer.encoder.hal:
- class: Drupal\hal\Encoder\JsonEncoder
- tags:
- - { name: encoder, priority: 10, format: hal_json }
-
- # Link managers.
- hal.link_manager:
- class: Drupal\hal\LinkManager\LinkManager
- arguments: ['@hal.link_manager.type', '@hal.link_manager.relation']
- hal.link_manager.type:
- class: Drupal\hal\LinkManager\TypeLinkManager
- arguments: ['@cache.default', '@module_handler', '@config.factory', '@request_stack', '@entity_type.bundle.info', '@entity_type.manager']
- hal.link_manager.relation:
- class: Drupal\hal\LinkManager\RelationLinkManager
- arguments: ['@cache.default', '@entity_type.manager', '@module_handler', '@config.factory', '@request_stack', '@entity_type.bundle.info', '@entity_field.manager']
Services
Title | Deprecated | Summary |
---|---|---|
hal.link_manager | Drupal\hal\LinkManager\LinkManager | |
hal.link_manager.relation | Drupal\hal\LinkManager\RelationLinkManager | |
hal.link_manager.type | Drupal\hal\LinkManager\TypeLinkManager | |
serializer.encoder.hal | Drupal\hal\Encoder\JsonEncoder | |
serializer.normalizer.entity.hal | Drupal\hal\Normalizer\ContentEntityNormalizer | |
serializer.normalizer.entity_reference_item.hal | Drupal\hal\Normalizer\EntityReferenceItemNormalizer | |
serializer.normalizer.field.hal | Drupal\hal\Normalizer\FieldNormalizer | |
serializer.normalizer.field_item.hal | Drupal\hal\Normalizer\FieldItemNormalizer | |
serializer.normalizer.file_entity.hal | Drupal\hal\Normalizer\FileEntityNormalizer | |
serializer.normalizer.timestamp_item.hal | Drupal\hal\Normalizer\TimestampItemNormalizer |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.