You are here

public function TrueFalseResponse::getResponse in Quiz 8.6

Same name and namespace in other branches
  1. 8.5 question_types/quiz_truefalse/src/Plugin/quiz/QuizQuestion/TrueFalseResponse.php \Drupal\quiz_truefalse\Plugin\quiz\QuizQuestion\TrueFalseResponse::getResponse()
  2. 6.x question_types/quiz_truefalse/src/Plugin/quiz/QuizQuestion/TrueFalseResponse.php \Drupal\quiz_truefalse\Plugin\quiz\QuizQuestion\TrueFalseResponse::getResponse()

Implementation of getResponse().

Overrides QuizResultAnswerEntityTrait::getResponse

See also

QuizQuestionResponse::getResponse()

1 call to TrueFalseResponse::getResponse()
TrueFalseResponse::getFeedbackValues in question_types/quiz_truefalse/src/Plugin/quiz/QuizQuestion/TrueFalseResponse.php
Implementation of getFeedbackValues().

File

question_types/quiz_truefalse/src/Plugin/quiz/QuizQuestion/TrueFalseResponse.php, line 35

Class

TrueFalseResponse
Extension of QuizQuestionResponse.

Namespace

Drupal\quiz_truefalse\Plugin\quiz\QuizQuestion

Code

public function getResponse() {
  return $this
    ->get('truefalse_answer')
    ->getString();
}