public function QuizQuestionResponse::isValid in Quiz 8.4
Validates response from a quiz taker. If the response isn't valid the quiz taker won't be allowed to proceed.
Return value
True if the response is valid. False otherwise
1 call to QuizQuestionResponse::isValid()
- QuizQuestionResponse::toBareObject in question_types/
quiz_question/ lib/ Drupal/ quiz_question/ QuizQuestionResponse.php - Represent the response as a stdClass object.
7 methods override QuizQuestionResponse::isValid()
- ClozeResponse::isValid in question_types/
cloze/ lib/ Drupal/ cloze/ ClozeResponse.php - Implementation of isValid
- LongAnswerResponse::isValid in question_types/
long_answer/ lib/ Drupal/ long_answer/ LongAnswerResponse.php - Implementation of isValid
- MatchingResponse::isValid in question_types/
matching/ lib/ Drupal/ matching/ MatchingResponse.php - Implementation of isValid
- MultichoiceResponse::isValid in question_types/
multichoice/ lib/ Drupal/ multichoice/ MultichoiceResponse.php - Implementation of isValid
- ScaleResponse::isValid in question_types/
scale/ lib/ Drupal/ scale/ ScaleResponse.php - Validates response from a quiz taker. If the response isn't valid the quiz taker won't be allowed to proceed.
File
- question_types/
quiz_question/ lib/ Drupal/ quiz_question/ QuizQuestionResponse.php, line 153
Class
Namespace
Drupal\quiz_questionCode
public function isValid() {
return TRUE;
}