-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathentity_markdown.services.yml
More file actions
26 lines (24 loc) · 1.01 KB
/
entity_markdown.services.yml
File metadata and controls
26 lines (24 loc) · 1.01 KB
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
services:
# The encoder is the formal way to declare a format in Drupal.
serializer.entity_markdown.markdown.encoder:
class: Drupal\entity_markdown\Encoder\Markdown
tags:
- { name: encoder, priority: 10, format: 'markdown' }
# The serializer that will transform content entities into MarkDown versions
# of them.
serializer.entity_markdown.markdown.content_entity:
class: Drupal\entity_markdown\Normalizer\ContentEntityNormalizer
tags:
- { name: normalizer, priority: 10 }
# The serializer that will transform field item lists into MarkDown versions
# of them.
serializer.entity_markdown.markdown.field_item_list:
class: Drupal\entity_markdown\Normalizer\FieldItemListNormalizer
tags:
- { name: normalizer, priority: 10 }
# The serializer that will transform field items into MarkDown versions of
# them.
serializer.entity_markdown.markdown.field_item:
class: Drupal\entity_markdown\Normalizer\FieldItemNormalizer
tags:
- { name: normalizer, priority: 10 }