forked from socketwench/flag-drupal8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flag.routing.yml
119 lines (105 loc) · 3.37 KB
/
flag.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
flag.add_page:
path: '/admin/structure/flags/add'
defaults:
_form: '\Drupal\flag\Form\FlagAddPageForm'
_title: 'Add New Flag'
requirements:
_permission: 'administer flags'
flag.list:
path: '/admin/structure/flags'
defaults:
_entity_list: 'flag'
_title: 'Flags'
requirements:
_permission: 'administer flags'
flag.add:
path: '/admin/structure/flags/add/{entity_type}'
defaults:
_entity_form: flag.add
_title: 'Add New Flag'
requirements:
_permission: 'administer flags'
flag.edit:
path: '/admin/structure/flags/manage/{flag}'
defaults:
_entity_form: flag.edit
_title: 'Edit Flag'
requirements:
_entity_access: 'flag.update'
flag.delete:
path: '/admin/structure/flags/manage/{flag}/delete'
defaults:
_entity_form: flag.delete
_title: 'Delete Flag'
requirements:
_entity_access: 'flag.update'
flag_link_flag.html:
path: '/flag/flag/{flag_id}/{entity_id}'
defaults:
_controller: '\Drupal\flag\Controller\ReloadLinkController::flag'
requirements:
_custom_access: '\Drupal\flag\FlaggingAccessController::checkflag'
_format: 'html'
flag.link_flag.json:
path: '/flag/flag/{flag_id}/{entity_id}'
defaults:
_controller: '\Drupal\flag\Controller\AJAXLinkController::flag'
requirements:
_custom_access: '\Drupal\flag\FlaggingAccessController::checkflag'
_format: 'json'
flag_link_unflag.html:
path: '/flag/unflag/{flag_id}/{entity_id}'
defaults:
_controller: '\Drupal\flag\Controller\ReloadLinkController::unflag'
requirements:
_custom_access: '\Drupal\flag\FlaggingAccessController::checkUnflag'
_format: 'html'
flag.link_unflag.json:
path: '/flag/unflag/{flag_id}/{entity_id}'
defaults:
_controller: '\Drupal\flag\Controller\AJAXLinkController::unflag'
requirements:
_custom_access: '\Drupal\flag\FlaggingAccessController::checkUnflag'
_format: 'json'
flag.confirm_flag:
path: '/flag/confirm/flag/{flag_id}/{entity_id}'
defaults:
_form: '\Drupal\flag\Form\FlaggingConfirmForm'
_title: 'Flag Content'
requirements:
_custom_access: '\Drupal\flag\FlaggingAccessController::checkflag'
flag.confirm_unflag:
path: '/flag/confirm/unflag/{flag_id}/{entity_id}'
defaults:
_form: '\Drupal\flag\Form\FlaggingConfirmForm'
_title: 'Flag Content'
requirements:
_custom_access: '\Drupal\flag\FlaggingAccessController::checkUnflag'
flag.field_entry:
path: '/flag/details/flag/{flag_id}/{entity_id}'
defaults:
_controller: '\Drupal\flag\Controller\FieldEntryFormController::flag'
_title_callback: '\Drupal\flag\Controller\FieldEntryFormController::flagTitle'
requirements:
_custom_access: '\Drupal\flag\FlaggingAccessController::checkflag'
flag.field_entry.edit:
path: '/flag/details/edit/{flag_id}/{entity_id}'
defaults:
_controller: '\Drupal\flag\Controller\FieldEntryFormController::edit'
_title_callback: '\Drupal\flag\Controller\FieldEntryFormController::editTitle'
requirements:
_custom_access: '\Drupal\flag\FlaggingAccessController::checkflag'
flag.enable:
path: '/flag/enable/{flag}'
defaults:
_form: '\Drupal\flag\Form\FlagDisableConfirmForm'
_title: 'Enable Flag?'
requirements:
_permission: 'administer flags'
flag.disable:
path: '/flag/disable/{flag}'
defaults:
_form: '\Drupal\flag\Form\FlagDisableConfirmForm'
_title: 'Disable Flag?'
requirements:
_permission: 'administer flags'