-
Notifications
You must be signed in to change notification settings - Fork 1
/
unccd_event_map.routing.yml
95 lines (84 loc) · 2.57 KB
/
unccd_event_map.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
# Public routes
# event_map.map:
# path: '/event-map'
# defaults:
# _controller: '\Drupal\unccd_event_map\Controller\MapController::map'
# _title: 'Event Map'
# requirements:
# _permission: 'access content'
# event_map.content:
# path: '/2018wdcd-events-around-world'
# defaults:
# _controller: '\Drupal\unccd_event_map\Controller\MapController::content'
# _title: '2018 WDCD events around the world'
# requirements:
# _permission: 'access content'
event_map.form:
path: '/event-map/form'
defaults:
_controller: '\Drupal\unccd_event_map\Controller\MapController::form'
_title: 'Submit Event'
requirements:
_permission: 'access content'
# Admin routes
event_map.config:
path: '/admin/config/development/unccd_event_map'
defaults:
_form: '\Drupal\unccd_event_map\Form\ConfigForm'
_title: 'UNCCD Event Map Settings'
requirements:
_permission: 'administer site configuration'
event_map.event_admin.list:
path: '/admin/structure/event-map'
defaults:
_controller: '\Drupal\unccd_event_map\Controller\EventAdminController::eventList'
_title: 'Manage event map'
options:
_admin_route: TRUE
requirements:
_permission: 'unccd edit event map'
event_map.event_admin.list_old:
path: '/admin/structure/event-map/list'
defaults:
_controller: '\Drupal\unccd_event_map\Controller\EventAdminController::listRedirect'
_title: 'Old event list'
options:
_admin_route: TRUE
requirements:
_permission: 'unccd edit event map'
event_map.event_admin.approve:
path: '/admin/structure/event-map/approve/{id}'
defaults:
_controller: '\Drupal\unccd_event_map\Controller\EventAdminController::approveEvent'
_title: 'Approve event'
options:
_admin_route: TRUE
requirements:
_permission: 'unccd edit event map'
event_map.event_admin.add:
path: '/admin/structure/event-map/add'
defaults:
_form: '\Drupal\unccd_event_map\Form\AddEventForm'
_title: 'Add event'
options:
_admin_route: TRUE
requirements:
_permission: 'unccd edit event map'
event_map.event_admin.edit:
path: '/admin/structure/event-map/edit/{id}'
defaults:
_form: '\Drupal\unccd_event_map\Form\EditEventForm'
_title: 'Edit event'
options:
_admin_route: TRUE
requirements:
_permission: 'unccd edit event map'
event_map.event_admin.delete:
path: '/admin/structure/event-map/delete/{id}'
defaults:
_controller: '\Drupal\unccd_event_map\Controller\EventAdminController::deleteEvent'
_title: 'Delete event'
options:
_admin_route: TRUE
requirements:
_permission: 'unccd edit event map'