Version 1
[yaffs-website] / web / modules / contrib / devel / webprofiler / webprofiler.routing.yml
diff --git a/web/modules/contrib/devel/webprofiler/webprofiler.routing.yml b/web/modules/contrib/devel/webprofiler/webprofiler.routing.yml
new file mode 100644 (file)
index 0000000..200bc39
--- /dev/null
@@ -0,0 +1,81 @@
+# toolbar
+webprofiler.toolbar:
+  path: '/profiler/{profile}'
+  defaults:
+    _controller: '\Drupal\webprofiler\Controller\ToolbarController::toolbarAction'
+  options:
+    parameters:
+      profile:
+        type: 'webprofiler:token'
+  requirements:
+    _permission: 'view webprofiler toolbar'
+
+# save frontend data
+webprofiler.frontend.save:
+  path: '/admin/reports/profiler/frontend/{profile}/save'
+  defaults:
+    _controller: '\Drupal\webprofiler\Controller\ToolbarController::savePerformanceTimingAction'
+    _title: 'Save performance timing data'
+  options:
+    parameters:
+      profile:
+        type: 'webprofiler:token'
+  methods:  [POST]
+  requirements:
+    _permission: 'access webprofiler'
+
+# view profile
+webprofiler.dashboard:
+  path: '/admin/reports/profiler/view/{profile}'
+  defaults:
+    _controller: '\Drupal\webprofiler\Controller\DashboardController::dashboardAction'
+    _title: 'Webprofiler'
+  options:
+    parameters:
+      profile:
+        type: 'webprofiler:token'
+  requirements:
+    _permission: 'access webprofiler'
+
+# list stored profiles
+webprofiler.admin_list:
+  path: '/admin/reports/profiler/list'
+  defaults:
+    _controller: '\Drupal\webprofiler\Controller\DashboardController::listAction'
+    _title: 'Webprofiler'
+  requirements:
+    _permission: 'access webprofiler'
+
+webprofiler.rest.collector:
+  path: '/admin/reports/profiler/view/{profile}/collectors/{collector}'
+  defaults:
+    _controller: '\Drupal\webprofiler\Controller\DashboardController::restCollectorAction'
+    _title: 'Webprofiler'
+  options:
+    parameters:
+      profile:
+        type: 'webprofiler:token'
+  requirements:
+    _permission: 'access webprofiler'
+
+# get query explain
+webprofiler.database.explain:
+  path: '/admin/reports/profiler/database_explain/{profile}/{qid}'
+  defaults:
+    _controller: '\Drupal\webprofiler\Controller\DatabaseController::explainAction'
+    _title: 'Query explain'
+  options:
+    parameters:
+      profile:
+        type: 'webprofiler:token'
+  requirements:
+    _permission: 'access webprofiler'
+
+# configure webprofiler
+webprofiler.settings:
+  path: '/admin/config/development/devel/webprofiler'
+  defaults:
+    _form: 'Drupal\webprofiler\Form\ConfigForm'
+    _title: 'Webprofiler settings'
+  requirements:
+    _permission: 'access webprofiler'