You are here

webform_submission_log.routing.yml in Webform 6.x

Same filename and directory in other branches
  1. 8.5 modules/webform_submission_log/webform_submission_log.routing.yml
modules/webform_submission_log/webform_submission_log.routing.yml

File

modules/webform_submission_log/webform_submission_log.routing.yml
View source
  1. entity.webform_submission.collection_log:
  2. path: '/admin/structure/webform/submissions/log'
  3. defaults:
  4. _controller: '\Drupal\webform_submission_log\Controller\WebformSubmissionLogController::overview'
  5. _title: 'Webforms: Submissions log'
  6. requirements:
  7. _permission: 'access webform submission log'
  8. _custom_access: '\Drupal\webform\Access\WebformAccountAccess:checkSubmissionAccess'
  9. entity.webform.results_log:
  10. path: '/admin/structure/webform/manage/{webform}/results/log'
  11. defaults:
  12. _controller: '\Drupal\webform_submission_log\Controller\WebformSubmissionLogController::overview'
  13. _title_callback: '\Drupal\webform\Controller\WebformEntityController::title'
  14. options:
  15. parameters:
  16. webform:
  17. type: 'entity:webform'
  18. requirements:
  19. _permission: 'access webform submission log'
  20. _entity_access: 'webform.submission_view_any'
  21. _custom_access: '\Drupal\webform\Access\WebformEntityAccess:checkLogAccess'
  22. entity.webform_submission.log:
  23. path: '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/log'
  24. defaults:
  25. _controller: '\Drupal\webform_submission_log\Controller\WebformSubmissionLogController::overview'
  26. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  27. requirements:
  28. _permission: 'access webform submission log'
  29. _entity_access: 'webform_submission.view_any'
  30. _custom_access: '\Drupal\webform\Access\WebformEntityAccess::checkLogAccess'
  31. # Webform node routes.
  32. # This routes will be removed if the webform_node.module is not installed.
  33. # @see \Drupal\webform_submission_log\Routing\WebformSubmissionLogRouteSubscriber
  34. entity.node.webform.results_log:
  35. path: '/node/{node}/webform/results/log'
  36. defaults:
  37. _controller: '\Drupal\webform_submission_log\Controller\WebformSubmissionLogController::nodeOverview'
  38. _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  39. operation: webform_submission_view
  40. entity_access: 'webform.submission_view_any'
  41. options:
  42. _admin_route: TRUE
  43. parameters:
  44. node:
  45. type: 'entity:node'
  46. requirements:
  47. _permission: 'access webform submission log'
  48. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformLogAccess'
  49. entity.node.webform_submission.log:
  50. path: '/node/{node}/webform/submission/{webform_submission}/log'
  51. defaults:
  52. _controller: '\Drupal\webform_submission_log\Controller\WebformSubmissionLogController::overview'
  53. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  54. operation: webform_submission_view
  55. entity_access: 'webform.submission_view_any'
  56. options:
  57. _admin_route: TRUE
  58. parameters:
  59. node:
  60. type: 'entity:node'
  61. requirements:
  62. _permission: 'access webform submission log'
  63. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformLogAccess'