-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlog.routing.yml
50 lines (46 loc) · 1.21 KB
/
log.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
log.add_page:
path: '/log/add'
defaults:
_title: 'Add content'
_controller: '\Drupal\log\Controller\LogController::addPage'
options:
_log_operation_route: TRUE
requirements:
_log_add_access: 'log'
log.add:
path: '/log/add/{log_type}'
defaults:
_controller: '\Drupal\log\Controller\LogController::add'
_title_callback: '\Drupal\log\Controller\LogController::addPageTitle'
requirements:
_log_add_access: 'log:{log_type}'
options:
_log_operation_route: TRUE
parameters:
log_type:
with_config_overrides: TRUE
# LogType routing definition
entity.log_type.collection:
path: '/admin/structure/logs'
defaults:
_entity_list: 'log_type'
_title: 'Log type'
requirements:
_permission: 'administer log types'
options:
_admin_route: TRUE
entity.log_type.add_form:
path: '/admin/structure/logs/add'
defaults:
_entity_form: 'log_type.add'
_title: 'Add Log type'
requirements:
_permission: 'administer log types'
options:
_admin_route: TRUE
log.multiple_delete_confirm:
path: '/admin/content/log/delete'
defaults:
_form: '\Drupal\log\Form\DeleteMultiple'
requirements:
_custom_access: '\Drupal\log\Form\DeleteMultiple::access'