function QuizQuestionController::feedback in Quiz 8.6
Same name and namespace in other branches
- 8.5 src/Controller/QuizQuestionController.php \Drupal\quiz\Controller\QuizQuestionController::feedback()
- 6.x src/Controller/QuizQuestionController.php \Drupal\quiz\Controller\QuizQuestionController::feedback()
Show feedback for a question or page.
Parameters
Quiz $quiz:
type $question_number:
Return value
type
1 string reference to 'QuizQuestionController::feedback'
File
- src/
Controller/ QuizQuestionController.php, line 24
Class
Namespace
Drupal\quiz\ControllerCode
function feedback(Quiz $quiz, $question_number) {
$form = Drupal::formBuilder()
->getForm(QuizQuestionFeedbackForm::class, $quiz, $question_number);
$page['body']['question'] = $form;
return $page;
}