webprofiler.routing.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. # save frontend data
  13. webprofiler.frontend.save:
  14. path: '/admin/reports/profiler/frontend/{profile}/save'
  15. defaults:
  16. _controller: '\Drupal\webprofiler\Controller\ToolbarController::savePerformanceTimingAction'
  17. _title: 'Save performance timing data'
  18. options:
  19. parameters:
  20. profile:
  21. type: 'webprofiler:token'
  22. methods: [POST]
  23. requirements:
  24. _permission: 'view webprofiler toolbar'
  25. # view profile
  26. webprofiler.dashboard:
  27. path: '/admin/reports/profiler/view/{profile}'
  28. defaults:
  29. _controller: '\Drupal\webprofiler\Controller\DashboardController::dashboardAction'
  30. _title: 'Webprofiler'
  31. options:
  32. parameters:
  33. profile:
  34. type: 'webprofiler:token'
  35. requirements:
  36. _permission: 'access webprofiler'
  37. # list stored profiles
  38. webprofiler.admin_list:
  39. path: '/admin/reports/profiler/list'
  40. defaults:
  41. _controller: '\Drupal\webprofiler\Controller\DashboardController::listAction'
  42. _title: 'Webprofiler'
  43. requirements:
  44. _permission: 'access webprofiler'
  45. webprofiler.rest.collector:
  46. path: '/admin/reports/profiler/view/{profile}/collectors/{collector}'
  47. defaults:
  48. _controller: '\Drupal\webprofiler\Controller\DashboardController::restCollectorAction'
  49. _title: 'Webprofiler'
  50. options:
  51. parameters:
  52. profile:
  53. type: 'webprofiler:token'
  54. requirements:
  55. _permission: 'access webprofiler'
  56. # get query explain
  57. webprofiler.database.explain:
  58. path: '/admin/reports/profiler/database_explain/{profile}/{qid}'
  59. defaults:
  60. _controller: '\Drupal\webprofiler\Controller\DatabaseController::explainAction'
  61. _title: 'Query explain'
  62. options:
  63. parameters:
  64. profile:
  65. type: 'webprofiler:token'
  66. requirements:
  67. _permission: 'access webprofiler'
  68. # configure webprofiler
  69. webprofiler.settings:
  70. path: '/admin/config/development/devel/webprofiler'
  71. defaults:
  72. _form: 'Drupal\webprofiler\Form\ConfigForm'
  73. _title: 'Webprofiler settings'
  74. requirements:
  75. _permission: 'access webprofiler'