-
Notifications
You must be signed in to change notification settings - Fork 1
/
rest_normalizations.services.yml
99 lines (97 loc) · 5.43 KB
/
rest_normalizations.services.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
services:
rest_normalizations.normalizer.content_entity:
class: Drupal\rest_normalizations\Normalizer\ContentEntityNormalizer
tags:
- { name: normalizer, priority: 3 }
arguments: ['@entity_type.manager', '@entity_type.repository', '@entity_field.manager', '%rest_normalizations.content_entity_operations_exclude%']
rest_normalizations.normalizer.text_field_item:
class: Drupal\rest_normalizations\Normalizer\TextFieldItemNormalizer
tags:
- { name: normalizer, priority: 8 }
rest_normalizations.normalizer.link_item:
class: Drupal\rest_normalizations\Normalizer\LinkItemNormalizer
tags:
- { name: normalizer, priority: 20 }
rest_normalizations.normalizer.entity_reference_field_item:
class: Drupal\rest_normalizations\Normalizer\EntityReferenceFieldItemNormalizer
tags:
- { name: normalizer, priority: 20 }
arguments: ['@language_manager']
rest_normalizations.normalizer.entity_reference_field_item_target:
class: Drupal\rest_normalizations\Normalizer\EntityReferenceFieldItemTargetNormalizer
tags:
- { name: normalizer, priority: 30 }
arguments: ['@language_manager', '%rest_normalizations.target_identifiers%']
rest_normalizations.normalizer.image_entity:
class: Drupal\rest_normalizations\Normalizer\ImageNormalizer
tags:
- { name: normalizer, priority: 5 }
arguments: ['@entity_type.manager', '@entity_type.repository', '@entity_field.manager', '%rest_normalizations.content_entity_operations_exclude%']
rest_normalizations.normalizer.entity_reference_field_item_field_target:
class: Drupal\rest_normalizations\Normalizer\EntityReferenceFieldItemFieldTargetNormalizer
tags:
- { name: normalizer, priority: 25 }
arguments: ['@language_manager', '%rest_normalizations.field_target_identifiers%']
rest_normalizations.ts_generator_component.entity_file:
class: Drupal\rest_normalizations\ComponentGenerator\FileGenerator
tags:
- { name: ts_generator_component, priority: 20 }
arguments: ['@entity_type.manager', '@entity_field.manager']
ts_generator.component_generator.content_entity:
class: Drupal\rest_normalizations\ComponentGenerator\ContentEntityGenerator
tags:
- { name: ts_generator_component, priority: 20 }
arguments: ['@entity_type.manager', '@entity_field.manager', '@language_manager', '%rest_normalizations.content_entity_operations_exclude%']
rest_normalizations.ts_generator_component.entity_node:
class: Drupal\rest_normalizations\ComponentGenerator\NodeGenerator
tags:
- { name: ts_generator_component, priority: 20 }
arguments: ['@entity_type.manager', '@entity_field.manager', '@language_manager', '%rest_normalizations.content_entity_operations_exclude%']
rest_normalizations.ts_generator_component.entity_paragraph:
class: Drupal\rest_normalizations\ComponentGenerator\ParagraphGenerator
tags:
- { name: ts_generator_component, priority: 20 }
arguments: ['@entity_type.manager', '@entity_field.manager', '@language_manager', '%rest_normalizations.content_entity_operations_exclude%']
rest_normalizations.ts_generator_component.entity_media:
class: Drupal\rest_normalizations\ComponentGenerator\MediaGenerator
tags:
- { name: ts_generator_component, priority: 20 }
arguments: ['@entity_type.manager', '@entity_field.manager', '@language_manager', '%rest_normalizations.content_entity_operations_exclude%']
rest_normalizations.ts_generator_component.field.text:
class: Drupal\rest_normalizations\ComponentGenerator\TextFieldGenerator
tags:
- { name: ts_generator_component, priority: 20 }
arguments: ['@plugin.manager.field.field_type']
rest_normalizations.ts_generator_component.field.link:
class: Drupal\rest_normalizations\ComponentGenerator\LinkFieldGenerator
tags:
- { name: ts_generator_component, priority: 20 }
arguments: ['@plugin.manager.field.field_type']
rest_normalizations.ts_generator_component.field.entity_reference:
class: Drupal\rest_normalizations\ComponentGenerator\EntityReferenceFieldGenerator
tags:
- { name: ts_generator_component, priority: 20 }
arguments: ['@plugin.manager.field.field_type', '@entity_type.manager']
rest_normalizations.ts_generator_component.field.entity_reference_target:
class: Drupal\rest_normalizations\ComponentGenerator\EntityReferenceTargetFieldGenerator
tags:
- { name: ts_generator_component, priority: 22 }
arguments: ['@plugin.manager.field.field_type', '@entity_type.manager', '%rest_normalizations.target_identifiers%']
rest_normalizations.ts_generator_component.field.file:
class: Drupal\rest_normalizations\ComponentGenerator\FileFieldGenerator
tags:
- { name: ts_generator_component, priority: 23 }
arguments: ['@plugin.manager.field.field_type', '@entity_type.manager', '%rest_normalizations.target_identifiers%']
rest_normalizations.ts_generator_component.field.entity_reference_target_field:
class: Drupal\rest_normalizations\ComponentGenerator\EntityReferenceTargetFieldFieldGenerator
tags:
- { name: ts_generator_component, priority: 21 }
arguments: ['@plugin.manager.field.field_type', '@entity_type.manager', '@entity_field.manager', '%rest_normalizations.field_target_identifiers%']
parameters:
rest_normalizations.target_identifiers:
- media
- file
- paragraph
rest_normalizations.field_target_identifiers: {}
rest_normalizations.content_entity_operations_exclude:
- commerce_product_variation