You are here

function QuizQuestionController::feedback in Quiz 8.6

Same name and namespace in other branches
  1. 8.5 src/Controller/QuizQuestionController.php \Drupal\quiz\Controller\QuizQuestionController::feedback()
  2. 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'
quiz.routing.yml in ./quiz.routing.yml
quiz.routing.yml

File

src/Controller/QuizQuestionController.php, line 24

Class

QuizQuestionController

Namespace

Drupal\quiz\Controller

Code

function feedback(Quiz $quiz, $question_number) {
  $form = Drupal::formBuilder()
    ->getForm(QuizQuestionFeedbackForm::class, $quiz, $question_number);
  $page['body']['question'] = $form;
  return $page;
}