200bc39734943ddab27ccf9e6e6e065c4731685a
[yaffs-website] / web / modules / contrib / devel / webprofiler / webprofiler.routing.yml
1 # toolbar
2 webprofiler.toolbar:
3   path: '/profiler/{profile}'
4   defaults:
5     _controller: '\Drupal\webprofiler\Controller\ToolbarController::toolbarAction'
6   options:
7     parameters:
8       profile:
9         type: 'webprofiler:token'
10   requirements:
11     _permission: 'view webprofiler toolbar'
12
13 # save frontend data
14 webprofiler.frontend.save:
15   path: '/admin/reports/profiler/frontend/{profile}/save'
16   defaults:
17     _controller: '\Drupal\webprofiler\Controller\ToolbarController::savePerformanceTimingAction'
18     _title: 'Save performance timing data'
19   options:
20     parameters:
21       profile:
22         type: 'webprofiler:token'
23   methods:  [POST]
24   requirements:
25     _permission: 'access webprofiler'
26
27 # view profile
28 webprofiler.dashboard:
29   path: '/admin/reports/profiler/view/{profile}'
30   defaults:
31     _controller: '\Drupal\webprofiler\Controller\DashboardController::dashboardAction'
32     _title: 'Webprofiler'
33   options:
34     parameters:
35       profile:
36         type: 'webprofiler:token'
37   requirements:
38     _permission: 'access webprofiler'
39
40 # list stored profiles
41 webprofiler.admin_list:
42   path: '/admin/reports/profiler/list'
43   defaults:
44     _controller: '\Drupal\webprofiler\Controller\DashboardController::listAction'
45     _title: 'Webprofiler'
46   requirements:
47     _permission: 'access webprofiler'
48
49 webprofiler.rest.collector:
50   path: '/admin/reports/profiler/view/{profile}/collectors/{collector}'
51   defaults:
52     _controller: '\Drupal\webprofiler\Controller\DashboardController::restCollectorAction'
53     _title: 'Webprofiler'
54   options:
55     parameters:
56       profile:
57         type: 'webprofiler:token'
58   requirements:
59     _permission: 'access webprofiler'
60
61 # get query explain
62 webprofiler.database.explain:
63   path: '/admin/reports/profiler/database_explain/{profile}/{qid}'
64   defaults:
65     _controller: '\Drupal\webprofiler\Controller\DatabaseController::explainAction'
66     _title: 'Query explain'
67   options:
68     parameters:
69       profile:
70         type: 'webprofiler:token'
71   requirements:
72     _permission: 'access webprofiler'
73
74 # configure webprofiler
75 webprofiler.settings:
76   path: '/admin/config/development/devel/webprofiler'
77   defaults:
78     _form: 'Drupal\webprofiler\Form\ConfigForm'
79     _title: 'Webprofiler settings'
80   requirements:
81     _permission: 'access webprofiler'