public function ShortAnswerResponse::getResponse in Quiz 8.6
Same name and namespace in other branches
- 8.5 question_types/quiz_short_answer/src/Plugin/quiz/QuizQuestion/ShortAnswerResponse.php \Drupal\quiz_short_answer\Plugin\quiz\QuizQuestion\ShortAnswerResponse::getResponse()
- 6.x question_types/quiz_short_answer/src/Plugin/quiz/QuizQuestion/ShortAnswerResponse.php \Drupal\quiz_short_answer\Plugin\quiz\QuizQuestion\ShortAnswerResponse::getResponse()
Implementation of getResponse().
Overrides QuizResultAnswerEntityTrait::getResponse
See also
QuizQuestionResponse::getResponse()
File
- question_types/
quiz_short_answer/ src/ Plugin/ quiz/ QuizQuestion/ ShortAnswerResponse.php, line 55
Class
- ShortAnswerResponse
- Extension of QuizResultAnswer.
Namespace
Drupal\quiz_short_answer\Plugin\quiz\QuizQuestionCode
public function getResponse() {
return $this
->get('short_answer')
->getString();
}