-
Notifications
You must be signed in to change notification settings - Fork 7
/
message_ui.routing.yml
64 lines (59 loc) · 1.9 KB
/
message_ui.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
entity.message.canonical:
path: '/message/{message}'
defaults:
# Calls the view controller, defined the message entity alter hook.
_entity_view: 'message'
_title: 'Message Content'
requirements:
# Calls the access controller of the entity, $operation 'view'
_entity_access: 'message.view'
message_ui.add_page:
path: '/message/add'
defaults:
_title: 'Add Message'
_controller: '\Drupal\message_ui\Controller\MessageController::addPage'
# appears_on: # Should we define a route for converting MENU_LOCAL_ACTION.
requirements:
_entity_create_access: 'message'
options:
_admin_route: TRUE
message_ui.add:
path: '/message/add/{message_template}'
defaults:
# Calls the form.add controller, defined in the message entity alter hook.
_controller: '\Drupal\message_ui\Controller\MessageController::add'
_title: 'Create Message'
requirements:
_entity_create_access: 'message:{message_template}'
options:
_admin_route: TRUE
parameters:
message_template:
with_config_overrides: FALSE
entity.message.edit_form:
path: '/message/{message}/edit'
defaults:
# Calls the form.edit controller, defined in the message entity alter hook.
_entity_form: message.edit
_title: 'Edit Message'
requirements:
_entity_access: 'message.edit'
options:
_admin_route: TRUE
entity.message.delete_form:
path: '/message/{message}/delete'
defaults:
# Calls the form.delete controller, defined in the message entity alter hook.
_entity_form: message.delete
_title: 'Delete Message'
requirements:
_entity_access: 'message.delete'
options:
_admin_route: TRUE
message_ui.message_multiple_delete_form:
path: '/admin/config/message/message_delete_multiple'
defaults:
_form: '\Drupal\message_ui\Form\MessageMultipleDeleteForm'
_title: 'Message multiple deleteForm'
requirements:
_permission: 'delete multiple messages'