abstract public function QuizResultAnswerEntityTrait::getResponse in Quiz 8.6
Same name and namespace in other branches
- 8.5 src/Entity/QuizResultAnswerEntityTrait.php \Drupal\quiz\Entity\QuizResultAnswerEntityTrait::getResponse()
Get the user's response.
Return value
mixed The answer given by the user
8 methods override QuizResultAnswerEntityTrait::getResponse()
- LongAnswerResponse::getResponse in question_types/
quiz_long_answer/ src/ Plugin/ quiz/ QuizQuestion/ LongAnswerResponse.php - Implementation of getResponse().
- MatchingResponse::getResponse in question_types/
quiz_matching/ src/ Plugin/ quiz/ QuizQuestion/ MatchingResponse.php - Implementation of getResponse().
- MultichoiceResponse::getResponse in question_types/
quiz_multichoice/ src/ Plugin/ quiz/ QuizQuestion/ MultichoiceResponse.php - Implementation of getResponse().
- QuizDirectionsResponse::getResponse in question_types/
quiz_directions/ src/ Plugin/ quiz/ QuizQuestion/ QuizDirectionsResponse.php - Get the user's response.
- QuizPageResponse::getResponse in question_types/
quiz_page/ src/ Plugin/ quiz/ QuizQuestion/ QuizPageResponse.php - Implementation of getResponse().
File
- src/
Entity/ QuizResultAnswerEntityTrait.php, line 211
Class
- QuizResultAnswerEntityTrait
- Each question type must store its own response data and be able to calculate a score for that data.
Namespace
Drupal\quiz\EntityCode
public abstract function getResponse();