-
Notifications
You must be signed in to change notification settings - Fork 14
/
file_entity.routing.yml
147 lines (130 loc) · 3.73 KB
/
file_entity.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
141
142
143
144
145
146
# @todo Move this back to admin/config/media/file-types in Drupal 8 if MenuTreeStorage::MAX_DEPTH is increased to a value higher than 9.
entity.file_type.collection:
path: /admin/structure/file-types
defaults:
_entity_list: 'file_type'
_title: 'File types'
requirements:
_permission: 'administer file types'
entity.file_type.add_form:
path: /admin/structure/file-types/add
defaults:
_entity_form: 'file_type.default'
_title: 'Add file type'
requirements:
_permission: 'administer file types'
entity.file_type.edit_form:
path: /admin/structure/file-types/manage/{file_type}/edit
defaults:
_entity_form: 'file_type.default'
_title: 'Manage file types'
requirements:
_permission: 'administer file types'
entity.file_type.enable:
path: /admin/structure/file-types/manage/{file_type}/enable
defaults:
_entity_form: 'file_type.enable'
_title: 'Enable file type'
requirements:
_permission: 'administer file types'
entity.file_type.disable:
path: /admin/structure/file-types/manage/{file_type}/disable
defaults:
_entity_form: 'file_type.disable'
_title: 'Disable file type'
requirements:
_permission: 'administer file types'
entity.file_type.delete_form:
path: /admin/structure/file-types/manage/{file_type}/delete
defaults:
_entity_form: 'file_type.delete'
_title: 'Delete file type'
requirements:
_permission: 'administer file types'
entity.file.add_form:
path: /file/add
defaults:
_form: '\Drupal\file_entity\Form\FileAddForm'
_title: 'Add file'
requirements:
_entity_create_access: 'file'
options:
_admin_route: TRUE
file_entity.file_add_upload:
path: /file/add/upload
defaults:
_controller: '\Drupal\file_entity\Controller\FileController::FileAddUpload'
_title: 'Upload'
requirements:
_permission: 'access content'
options:
_admin_route: TRUE
file_entity.file_add_upload_file:
path: /file/add/upload/file
defaults:
_controller: '\Drupal\file_entity\Controller\FileController::FileAddUploadFile'
_title: 'File'
requirements:
_permission: 'access content'
options:
_admin_route: TRUE
entity.file.canonical:
path: /file/{file}
defaults:
_entity_view: 'file.full'
_title: 'File'
requirements:
_entity_access: 'file.view'
file_entity.file_download:
path: /file/{file}/download
defaults:
_controller: '\Drupal\file_entity\Controller\FileController::download'
_title: 'Download file'
requirements:
_entity_access: 'file.download'
entity.file.edit_form:
path: /file/{file}/edit
defaults:
_entity_form: 'file.edit'
_title: 'Edit'
requirements:
_entity_access: 'file.update'
options:
_admin_route: TRUE
entity.file.inline_edit_form:
path: /file/{file}/inline-edit
defaults:
_controller: '\Drupal\file_entity\Controller\FileController::inlineEdit'
requirements:
_entity_access: 'file.update'
entity.file.delete_form:
path: /file/{file}/delete
defaults:
_entity_form: 'file.delete'
_title: 'Delete file'
requirements:
_entity_access: 'file.delete'
options:
_admin_route: TRUE
file_entity.multiple_delete_confirm:
path: /admin/content/files/delete
defaults:
_form: '\Drupal\file_entity\Form\FileDeleteMultipleForm'
requirements:
_permission: 'administer files'
file_entity.settings:
path: /admin/config/media/file-settings
defaults:
_form: '\Drupal\file_entity\Form\FileSettingsForm'
_title: 'File settings'
requirements:
_permission: 'administer files'
file_entity.file_add_archive_form:
path: /admin/content/files/archive
defaults:
_form: '\Drupal\file_entity\Form\FileAddArchiveForm'
_title: 'Upload archive'
requirements:
_permission: 'administer files'
options:
_admin_route: TRUE