2013-04-09 04:32:49 +00:00
|
|
|
services:
|
|
|
|
serializer.normalizer.entity_reference_item.hal:
|
|
|
|
class: Drupal\hal\Normalizer\EntityReferenceItemNormalizer
|
Issue #2543726 by damiankloip, Wim Leers, claudiu.cristea, voleger, dagmar, dawehner, amateescu, tedbow, FredCorreia, mgalalm, caseylau, jibran, dbjpanda, pcambra, Grimreaper, idebr, dmouse, larowlan, Berdir, chx, andypost, yched, fgm: Make $term->parent behave like any other entity reference field, to fix REST and Migrate support and de-customize its Views integration
2018-01-15 23:40:26 +00:00
|
|
|
arguments: ['@hal.link_manager', '@serializer.entity_resolver', '@entity_type.manager']
|
2013-04-09 04:32:49 +00:00
|
|
|
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 }
|
2014-02-10 10:34:59 +00:00
|
|
|
serializer.normalizer.file_entity.hal:
|
|
|
|
class: Drupal\hal\Normalizer\FileEntityNormalizer
|
Issue #2825487 by damiankloip, Wim Leers, garphy, cburschka, tedbow, dpovshed, tstoeckler, Munavijayalakshmi, Berdir, dawehner, e0ipso: Fix normalization of File entities: file entities should expose the file URL as a computed property on the 'uri' base field
2017-12-20 22:14:36 +00:00
|
|
|
deprecated: 'The "%service_id%" normalizer service is deprecated: it is obsolete, it only remains available for backwards compatibility.'
|
2019-01-11 14:13:39 +00:00
|
|
|
arguments: ['@entity_type.manager', '@hal.link_manager', '@module_handler', '@config.factory', '@entity_type.repository', '@entity_field.manager']
|
2014-02-10 10:34:59 +00:00
|
|
|
tags:
|
|
|
|
- { name: normalizer, priority: 20 }
|
2017-05-24 20:47:56 +00:00
|
|
|
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' }
|
2013-04-09 04:32:49 +00:00
|
|
|
serializer.normalizer.entity.hal:
|
2014-03-25 10:40:34 +00:00
|
|
|
class: Drupal\hal\Normalizer\ContentEntityNormalizer
|
2019-01-11 14:13:39 +00:00
|
|
|
arguments: ['@hal.link_manager', '@entity_type.manager', '@module_handler', '@entity_type.repository', '@entity_field.manager']
|
2013-04-09 04:32:49 +00:00
|
|
|
tags:
|
|
|
|
- { name: normalizer, priority: 10 }
|
|
|
|
serializer.encoder.hal:
|
|
|
|
class: Drupal\hal\Encoder\JsonEncoder
|
|
|
|
tags:
|
|
|
|
- { name: encoder, priority: 10, format: hal_json }
|
2017-02-27 12:22:01 +00:00
|
|
|
|
|
|
|
# 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
|
2019-01-11 14:13:39 +00:00
|
|
|
arguments: ['@cache.default', '@module_handler', '@config.factory', '@request_stack', '@entity_type.bundle.info', '@entity_type.manager']
|
2017-02-27 12:22:01 +00:00
|
|
|
hal.link_manager.relation:
|
|
|
|
class: Drupal\hal\LinkManager\RelationLinkManager
|
2019-01-11 14:13:39 +00:00
|
|
|
arguments: ['@cache.default', '@entity_type.manager', '@module_handler', '@config.factory', '@request_stack', '@entity_type.bundle.info', '@entity_field.manager']
|