-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathomnipedia_changes.services.yml
More file actions
80 lines (69 loc) · 3.22 KB
/
Copy pathomnipedia_changes.services.yml
File metadata and controls
80 lines (69 loc) · 3.22 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
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
services:
# The Omnipedia wiki node changes cache bin.
cache.omnipedia_wiki_node_changes:
class: Drupal\Core\Cache\CacheBackendInterface
tags:
- { name: cache.bin, default_backend: cache.backend.permanent_database }
factory: cache_factory:get
arguments: [omnipedia_wiki_node_changes]
# Our logger channel.
logger.channel.omnipedia_changes:
class: Drupal\Core\Logger\LoggerChannel
factory: logger.factory:get
arguments: ['omnipedia_changes']
# The Omnipedia wiki node changes builder service.
omnipedia.wiki_node_changes_builder:
class: Drupal\omnipedia_changes\Service\WikiNodeChangesBuilder
arguments:
- '@entity_type.manager'
- '@event_dispatcher'
- '@diff.html_diff'
- '@renderer'
- '@string_translation'
- '@Drupal\typed_entity\RepositoryManager'
- '@omnipedia.wiki_node_changes_cache'
- '@omnipedia.wiki_node_changes_info'
# The Omnipedia wiki node changes cache service.
omnipedia.wiki_node_changes_cache:
class: Drupal\omnipedia_changes\Service\WikiNodeChangesCache
arguments:
- '@cache.omnipedia_wiki_node_changes'
- '@cache_tags.invalidator'
- '@omnipedia.wiki_node_changes_info'
# The Omnipedia wiki node changes info service.
omnipedia.wiki_node_changes_info:
class: Drupal\omnipedia_changes\Service\WikiNodeChangesInfo
arguments:
- '@cache_contexts_manager'
- '@entity_type.manager'
- '@omnipedia_user.permission_hashes'
# Event subscriber to prepare wiki node changes diff content for alterations.
omnipedia_changes.diff_prepare_event_subscriber:
class: Drupal\omnipedia_changes\EventSubscriber\Omnipedia\Changes\DiffPrepareEventSubscriber
tags:
- { name: 'event_subscriber', priority: -25 }
# Event subscriber to alter any changed wiki node changes diff content.
omnipedia_changes.diff_alter_changed_content_event_subscriber:
class: Drupal\omnipedia_changes\EventSubscriber\Omnipedia\Changes\DiffAlterChangedContentEventSubscriber
tags:
- { name: 'event_subscriber', priority: -20 }
# Event subscriber to alter any added wiki node changes diff content.
omnipedia_changes.diff_alter_added_content_event_subscriber:
class: Drupal\omnipedia_changes\EventSubscriber\Omnipedia\Changes\DiffAlterAddedContentEventSubscriber
tags:
- { name: 'event_subscriber', priority: -15 }
# Event subscriber to alter any removed wiki node changes diff content.
omnipedia_changes.diff_alter_removed_content_event_subscriber:
class: Drupal\omnipedia_changes\EventSubscriber\Omnipedia\Changes\DiffAlterRemovedContentEventSubscriber
tags:
- { name: 'event_subscriber', priority: -10 }
# Event subscriber to alter any links in the wiki node changes diff content.
omnipedia_changes.diff_alter_links_event_subscriber:
class: Drupal\omnipedia_changes\EventSubscriber\Omnipedia\Changes\DiffAlterLinksEventSubscriber
tags:
- { name: 'event_subscriber', priority: -5 }
# Event subscriber to clean up any unaltered wiki node changes diff content.
omnipedia_changes.diff_clean_up_event_subscriber:
class: Drupal\omnipedia_changes\EventSubscriber\Omnipedia\Changes\DiffCleanUpEventSubscriber
tags:
- { name: 'event_subscriber', priority: 20 }