-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstanford_earth_r25.routing.yml
134 lines (123 loc) · 4.32 KB
/
stanford_earth_r25.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
stanford_earth_r25.top:
path: '/admin/config/r25'
defaults:
_controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
_title: 'Stanford Earth R25'
requirements:
_permission: 'administer stanford r25'
stanford_earth_r25.config_credentials_form:
# this will be a pick under admin/config
path: '/admin/config/r25/credentials'
# define where the form will be found and who can access it
defaults:
_form: '\Drupal\stanford_earth_r25\Form\StanfordEarthR25CredentialsForm'
_title: 'Stanford Earth R25 Credentials'
requirements:
_permission: 'administer stanford r25'
stanford_earth_r25.config_settings_form:
# this will be a pick under admin/config
path: '/admin/config/r25/config'
# define where the form will be found and who can access it
defaults:
_form: '\Drupal\stanford_earth_r25\Form\StanfordEarthR25ConfigForm'
_title: 'Stanford Earth R25 Settings'
requirements:
_permission: 'administer stanford r25'
entity.stanford_earth_r25_location.collection:
path: '/admin/config/system/stanford_earth_r25_location'
defaults:
_entity_list: 'stanford_earth_r25_location'
_title: 'Stanford Earth R25 Locations'
requirements:
_permission: 'administer stanford r25'
entity.stanford_earth_r25_location.add_form:
path: '/admin/config/system/stanford_earth_r25_location/add'
defaults:
_entity_form: 'stanford_earth_r25_location.add'
_title: 'Add location'
requirements:
_permission: 'administer stanford r25'
entity.stanford_earth_r25_location.edit_form:
path: '/admin/config/system/stanford_earth_r25_location/{stanford_earth_r25_location}'
defaults:
_entity_form: 'stanford_earth_r25_location.edit'
_title: 'Edit location'
requirements:
_permission: 'administer stanford r25'
entity.stanford_earth_r25_location.delete_form:
path: '/admin/config/system/stanford_earth_r25_location/{stanford_earth_r25_location}/delete'
defaults:
_entity_form: 'stanford_earth_r25_location.delete'
_title: 'Delete location'
requirements:
_permission: 'administer stanford r25'
entity.stanford_earth_r25_location.feed:
# JSON feed to return to the JavaScript FullCalendar, parameterized by room id
path: '/r25/{r25_location}/r25_feed'
defaults:
_controller: '\Drupal\stanford_earth_r25\Controller\StanfordEarthR25FeedController::feed'
_title: 'Stanford R25 Feed'
options:
parameters:
r25_location:
type: entity:stanford_earth_r25_location
no_cache: TRUE
requirements:
_permission: 'view r25 room calendars'
entity.stanford_earth_r25_location.calendar:
path: '/r25/{r25_location}/calendar'
defaults:
_title_callback: '\Drupal\stanford_earth_r25\Controller\StanfordEarthR25CalendarController::title'
_controller: '\Drupal\stanford_earth_r25\Controller\StanfordEarthR25CalendarController::page'
_title: 'Stanford R25 Calendar Page'
options:
parameters:
r25_location:
type: entity:stanford_earth_r25_location
requirements:
_permission: 'view r25 room calendars'
stanford_earth_r25_location.reservation:
path: '/r25/reservation/{location_id}/{start}'
defaults:
_controller: '\Drupal\stanford_earth_r25\Controller\StanfordEarthR25ReservationController::reserve'
_title: 'Stanford R25 Reservation Page'
options:
parameters:
location_id:
type: string
start:
type: string
requirements:
_permission: 'book r25 rooms'
stanford_earth_r25_location.modify:
path: '/r25/modify/{op}/{location_id}/{event_id}/{start}'
defaults:
_controller: '\Drupal\stanford_earth_r25\Controller\StanfordEarthR25ModifyController::modify'
_title: 'Stanford R25 Modify Reservation'
options:
parameters:
op:
type: string
location_id:
type: string
event_id:
type: string
start:
type: string
requirements:
_permission: 'book r25 rooms'
stanford_earth_r25_booking.export:
path: '/r25/booking_export/{r25_location}/{start}/{end}'
defaults:
_controller: '\Drupal\stanford_earth_r25\Controller\StanfordEarthR25ExportController::export'
_title: 'Stanford R25 Export Reservations'
options:
parameters:
r25_location:
type: entity:stanford_earth_r25_location
start:
type: string
end:
type: string
requirements:
_permission: 'administer stanford r25'