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.'
|
Issue #1927648 by damiankloip, Wim Leers, marthinal, tedbow, alexpott, Arla, juampynr, garphy, bc, ibustos, eiriksm, larowlan, dawehner, gcardinal, kylebrowning, vivekvpandya, Sam152, neclimdul, pnagornyak, drnikki, queenvictoria, gaurav.goyal, kim.pepper, Berdir, clemens.tolboom, blainelang, moshe weitzman, webchick, linclark, dabito, skyredwang, Dave Reid, gabesullice, dagmar, klausi, andypost, aheimlich, slashrsm, pwolanin, xjm, catch, amateescu: Allow creation of file entities from binary data via REST requests
2018-04-03 14:28:50 +00:00
|
|
|
arguments: ['@entity.manager', '@hal.link_manager', '@module_handler', '@config.factory']
|
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
|
2017-02-27 12:22:01 +00:00
|
|
|
arguments: ['@hal.link_manager', '@entity.manager', '@module_handler']
|
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
|
|
|
|
arguments: ['@cache.default', '@module_handler', '@config.factory', '@request_stack', '@entity_type.bundle.info']
|
|
|
|
hal.link_manager.relation:
|
|
|
|
class: Drupal\hal\LinkManager\RelationLinkManager
|
|
|
|
arguments: ['@cache.default', '@entity.manager', '@module_handler', '@config.factory', '@request_stack']
|