quiz.routing.yml in Quiz 8.4
Same filename and directory in other branches
1 string reference to YAML keys in quiz.routing.yml
- quiz_menu in ./
quiz.module - Implements hook_menu(). TODO: Migrate all menu url from D7 Quiz. Total 17 urls.
File
quiz.routing.ymlView source
- quiz.take:
- path: '/node/{node}/take'
- defaults:
- _content: '\Drupal\quiz\Controller\QuizController::quizTake'
- requirements:
- _permission: 'quiz_take_access'
-
- quiz.options:
- path: '/node/{node}/options'
- defaults:
- _content: '\Drupal\quiz\Controller\QuizController::quizOptions'
- requirements:
- _permission: 'administer site configuration'
-
- quiz.questions:
- path: '/node/{node}/questions'
- defaults:
- _content: '\Drupal\quiz\Controller\QuizController::quizQuestions'
- requirements:
- _permission: 'administer site configuration'
-
- quiz.results:
- path: '/node/{node}/results'
- defaults:
- _content: '\Drupal\quiz\Controller\QuizController::quizResults'
- requirements:
- _permission: 'quiz_access_results'
-
- quiz.user_results:
- path: '/user/quiz/{result_id}/userresults'
- defaults:
- _content: '\Drupal\quiz\Controller\QuizController::quizUserResults'
- requirements:
- _permission: 'quiz_access_my_result'
-
- quiz.admin_config_quiz:
- path: '/admin/config/quiz'
- defaults:
- _content: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
- requirements:
- _permission: 'access administration pages'
-
- quiz.settings_config:
- path: '/admin/config/quiz/config'
- defaults:
- _content: '\Drupal\quiz\Controller\QuizController::quizSettingsConfig'
- requirements:
- _permission: 'access administration pages'
-
- quiz.settings_quiz_form:
- path: '/admin/config/quiz/quiz_form'
- defaults:
- _content: '\Drupal\quiz\Controller\QuizController::quizSettingsQuizForm'
- requirements:
- _permission: 'access administration pages'
-
- quiz.settings_results:
- path: '/admin/config/quiz/results'
- defaults:
- _content: '\Drupal\quiz\Controller\QuizController::quizSettingsQuizResults'
- requirements:
- _permission: 'view any quiz results' # @todo: Need to add access callback 'quiz_access_multi_or', D8 way.
-
- quiz.results_page:
- path: '/node/{node}/results/{quiz_rid}'
- defaults:
- _content: '\Drupal\quiz\Controller\QuizController::quizResultsPage'
- requirements:
- _permission: 'quiz_access_results'
-
- quiz.my_results:
- path: '/node/{node}/myresults'
- defaults:
- _content: '\Drupal\quiz\Controller\QuizController::quizMyResults'
- requirements:
- _permission: 'quiz_access_my_results'
-
- quiz.my_results_page:
- path: '/node/{node}/myresults/{quiz_rid}'
- defaults:
- _content: '\Drupal\quiz\Controller\QuizController::quizMyResultsPage'
- requirements:
- _permission: 'quiz_access_my_results'
-
- quiz.user_my_results:
- path: '/user/{user_id}/myresults'
- defaults:
- _content: '\Drupal\quiz\Controller\QuizController::quizUserMyResults'
- requirements:
- _permission: '_quiz_user_results_access'
-
- quiz.config:
- path: 'admin/config/quiz'
-
- requirements:
- _permission: 'administer site configuration'