public function MultichoiceResponse::getResponse in Quiz 8.5
Same name and namespace in other branches
- 8.6 question_types/quiz_multichoice/src/Plugin/quiz/QuizQuestion/MultichoiceResponse.php \Drupal\quiz_multichoice\Plugin\quiz\QuizQuestion\MultichoiceResponse::getResponse()
- 6.x question_types/quiz_multichoice/src/Plugin/quiz/QuizQuestion/MultichoiceResponse.php \Drupal\quiz_multichoice\Plugin\quiz\QuizQuestion\MultichoiceResponse::getResponse()
Implementation of getResponse().
Overrides QuizResultAnswerEntityTrait::getResponse
See also
QuizQuestionResponse::getResponse()
1 call to MultichoiceResponse::getResponse()
- MultichoiceResponse::getFeedbackValues in question_types/
quiz_multichoice/ src/ Plugin/ quiz/ QuizQuestion/ MultichoiceResponse.php - Get the response part of the report form.
File
- question_types/
quiz_multichoice/ src/ Plugin/ quiz/ QuizQuestion/ MultichoiceResponse.php, line 121
Class
- MultichoiceResponse
- Extension of QuizQuestionResponse.
Namespace
Drupal\quiz_multichoice\Plugin\quiz\QuizQuestionCode
public function getResponse() {
$vids = [];
foreach ($this
->get('multichoice_answer')
->referencedEntities() as $alternative) {
$vids[] = $alternative
->getRevisionId();
}
return $vids;
}