-
Notifications
You must be signed in to change notification settings - Fork 1
/
applenews.routing.yml
140 lines (125 loc) · 4.45 KB
/
applenews.routing.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# Template.
entity.applenews_template.collection:
path: '/admin/config/services/applenews'
defaults:
_entity_list: 'applenews_template'
_title: 'Apple News'
requirements:
_permission: 'administer applenews templates'
entity.applenews_template.add_form:
path: '/admin/config/services/applenews/template/add'
defaults:
_entity_form: 'applenews_template.add'
_title: 'Add Apple News template'
requirements:
_permission: 'administer applenews templates'
entity.applenews_template.edit_form:
path: '/admin/config/services/applenews/template/{applenews_template}'
defaults:
_entity_form: 'applenews_template.edit'
_title: 'Edit Apple News template'
requirements:
_permission: 'administer applenews templates'
entity.applenews_template.delete_form:
path: '/admin/config/services/applenews/template/{applenews_template}/delete'
defaults:
_entity_form: 'applenews_template.delete'
_title: 'Delete Apple News template'
requirements:
_permission: 'administer applenews templates'
# Channel.
entity.applenews_channel.collection:
path: '/admin/config/services/applenews/channel'
defaults:
_entity_list: 'applenews_channel'
_title: 'Apple News Channels'
requirements:
_permission: 'administer applenews channels'
entity.applenews_channel.add_form:
path: '/admin/config/services/applenews/channel/add'
defaults:
_entity_form: 'applenews_channel.default'
_title: 'Add Apple News channel'
requirements:
_permission: 'administer applenews channels'
entity.applenews_channel.edit_form:
path: '/admin/config/services/applenews/channel/{applenews_channel}'
defaults:
_entity_form: 'applenews_channel.default'
_title: 'Edit Apple News channel'
requirements:
_permission: 'administer applenews channels'
entity.applenews_channel.refresh_form:
path: '/admin/config/services/applenews/channel/{applenews_channel}/refresh'
defaults:
_title: 'Refresh channel metadata for Apple News'
_controller: '\Drupal\applenews\Controller\ApplenewsChannelController::refresh'
requirements:
_permission: 'administer applenews channels'
entity.applenews_channel.delete_form:
path: '/admin/config/services/applenews/{applenews_channel}/delete'
defaults:
_entity_form: 'applenews_channel.delete'
_title: 'Delete Apple News channel'
requirements:
_permission: 'administer applenews channels'
# Text style.
entity.applenews_text_style.collection:
path: '/admin/config/services/applenews/text-style'
defaults:
_entity_list: 'applenews_text_style'
_title: 'Text styles'
requirements:
_permission: 'administer applenews text styles'
entity.applenews_text_style.add_form:
path: '/admin/config/services/applenews/text-style/add'
defaults:
_entity_form: 'applenews_text_style.add'
_title: 'Add Apple News text styles'
requirements:
_permission: 'administer applenews text styles'
entity.applenews_text_style.edit_form:
path: '/admin/config/services/applenews/text-style/{applenews_text_style}'
defaults:
_entity_form: 'applenews_text_style.edit'
_title: 'Edit Apple News text styles'
requirements:
_permission: 'administer applenews text styles'
entity.applenews_text_style.delete_form:
path: '/admin/config/services/applenews/text-style/{applenews_text_style}/delete'
defaults:
_entity_form: 'applenews_text_style.delete'
_title: 'Delete Apple News text styles'
requirements:
_permission: 'administer applenews text styles'
# Entity.
applenews.preview_download:
path: '/admin/config/services/applenews/{entity_type}/{entity}/{revision_id}/{template_id}/download'
defaults:
_title: 'Download article for Apple News preview'
_controller: '\Drupal\applenews\Controller\ApplenewsPreviewController::preview'
requirements:
_permission: 'preview applenews content'
options:
parameters:
entity:
type: entity:{entity_type}
applenews.remote.article_delete:
path: '/admin/config/services/applenews/remote/{entity_type}/{entity}/delete'
defaults:
_form: 'Drupal\applenews\Form\AppleNewsArticleDeleteForm'
_title: 'Delete article'
requirements:
_permission: 'administer applenews configuration'
options:
parameters:
entity:
type: entity:{entity_type}
# Settings.
applenews.settings:
path: '/admin/config/services/applenews/settings'
defaults:
_form: 'Drupal\applenews\Form\SettingsForm'
_title: 'Apple News Settings'
requirements:
_permission: 'administer applenews configuration'