You are here

quiz_stats.routing.yml in Quiz 8.4

modules/quiz_stats/quiz_stats.routing.yml

File

modules/quiz_stats/quiz_stats.routing.yml
View source
  1. quiz_stats.quiz_statistics:
  2. path: '/admin/config/quiz/stats/creator'
  3. defaults:
  4. _content: '\Drupal\quiz_stats\Controller\QuizStatsController::quizStatistics'
  5. requirements:
  6. _permission: 'access author stats'
  7. quiz_stats.quiz_statistics_report:
  8. path: '/node/{node}/statistics'
  9. defaults:
  10. _content: '\Drupal\quiz_stats\Controller\QuizStatsController::quizStatisticsReport'
  11. requirements:
  12. _permission: 'access user stats'
  13. # Need to add access callback "quiz_type_confirm".
  14. quiz_stats.quiz_statistics_page:
  15. path: '/node/{node}/statistics/{vid}'
  16. defaults:
  17. _content: '\Drupal\quiz_stats\Controller\QuizStatsController::quizStatisticsPage'
  18. requirements:
  19. _permission: 'access user stats'
  20. # Need to add access callback "quiz_stats_validate_vid".
  21. quiz_stats.quiz_user_statistics:
  22. path: '/user/{uid}/stats'
  23. defaults:
  24. _content: '\Drupal\quiz_stats\Controller\QuizStatsController::quizUserStatistics'
  25. requirements:
  26. _permission: 'access user stats'
  27. quiz_stats.quiz_user_statistics_view:
  28. path: '/user/{uid}/stats/{vid}/view'
  29. defaults:
  30. _content: '\Drupal\quiz_stats\Controller\QuizStatsController::quizUserStatisticsView'
  31. requirements:
  32. _permission: 'access user stats'