You are here

public function QuizQuestionInterface::getAnsweringForm in Quiz 6.x

Get the form through which the user will answer the question.

Question types should populate the form with selected values from the current result if possible.

Parameters

FormStateInterface $form_state: Form state.

QuizResultAnswer $answer: The quiz result answer.

Return value

array Form array.

File

src/QuizQuestionInterface.php, line 28

Class

QuizQuestionInterface
Provides an interface for quiz questions.

Namespace

Drupal\quiz

Code

public function getAnsweringForm(FormStateInterface $form_state, QuizResultAnswer $answer) : array;