You are here

quiz.routing.yml in Quiz 8.4

Same filename and directory in other branches
  1. 8.6 quiz.routing.yml
  2. 8.5 quiz.routing.yml
  3. 6.x quiz.routing.yml

File

quiz.routing.yml
View source
  1. quiz.take:
  2. path: '/node/{node}/take'
  3. defaults:
  4. _content: '\Drupal\quiz\Controller\QuizController::quizTake'
  5. requirements:
  6. _permission: 'quiz_take_access'
  7. quiz.options:
  8. path: '/node/{node}/options'
  9. defaults:
  10. _content: '\Drupal\quiz\Controller\QuizController::quizOptions'
  11. requirements:
  12. _permission: 'administer site configuration'
  13. quiz.questions:
  14. path: '/node/{node}/questions'
  15. defaults:
  16. _content: '\Drupal\quiz\Controller\QuizController::quizQuestions'
  17. requirements:
  18. _permission: 'administer site configuration'
  19. quiz.results:
  20. path: '/node/{node}/results'
  21. defaults:
  22. _content: '\Drupal\quiz\Controller\QuizController::quizResults'
  23. requirements:
  24. _permission: 'quiz_access_results'
  25. quiz.user_results:
  26. path: '/user/quiz/{result_id}/userresults'
  27. defaults:
  28. _content: '\Drupal\quiz\Controller\QuizController::quizUserResults'
  29. requirements:
  30. _permission: 'quiz_access_my_result'
  31. quiz.admin_config_quiz:
  32. path: '/admin/config/quiz'
  33. defaults:
  34. _content: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  35. requirements:
  36. _permission: 'access administration pages'
  37. quiz.settings_config:
  38. path: '/admin/config/quiz/config'
  39. defaults:
  40. _content: '\Drupal\quiz\Controller\QuizController::quizSettingsConfig'
  41. requirements:
  42. _permission: 'access administration pages'
  43. quiz.settings_quiz_form:
  44. path: '/admin/config/quiz/quiz_form'
  45. defaults:
  46. _content: '\Drupal\quiz\Controller\QuizController::quizSettingsQuizForm'
  47. requirements:
  48. _permission: 'access administration pages'
  49. quiz.settings_results:
  50. path: '/admin/config/quiz/results'
  51. defaults:
  52. _content: '\Drupal\quiz\Controller\QuizController::quizSettingsQuizResults'
  53. requirements:
  54. _permission: 'view any quiz results' # @todo: Need to add access callback 'quiz_access_multi_or', D8 way.
  55. quiz.results_page:
  56. path: '/node/{node}/results/{quiz_rid}'
  57. defaults:
  58. _content: '\Drupal\quiz\Controller\QuizController::quizResultsPage'
  59. requirements:
  60. _permission: 'quiz_access_results'
  61. quiz.my_results:
  62. path: '/node/{node}/myresults'
  63. defaults:
  64. _content: '\Drupal\quiz\Controller\QuizController::quizMyResults'
  65. requirements:
  66. _permission: 'quiz_access_my_results'
  67. quiz.my_results_page:
  68. path: '/node/{node}/myresults/{quiz_rid}'
  69. defaults:
  70. _content: '\Drupal\quiz\Controller\QuizController::quizMyResultsPage'
  71. requirements:
  72. _permission: 'quiz_access_my_results'
  73. quiz.user_my_results:
  74. path: '/user/{user_id}/myresults'
  75. defaults:
  76. _content: '\Drupal\quiz\Controller\QuizController::quizUserMyResults'
  77. requirements:
  78. _permission: '_quiz_user_results_access'
  79. quiz.config:
  80. path: 'admin/config/quiz'
  81. requirements:
  82. _permission: 'administer site configuration'