You are here

public function MatchingResponse::getResponse in Quiz 8.6

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

Implementation of getResponse().

Overrides QuizResultAnswerEntityTrait::getResponse

See also

QuizQuestionResponse::getResponse()

File

question_types/quiz_matching/src/Plugin/quiz/QuizQuestion/MatchingResponse.php, line 71

Class

MatchingResponse
Extension of QuizQuestionResponse

Namespace

Drupal\quiz_matching\Plugin\quiz\QuizQuestion

Code

public function getResponse() {
  return $this
    ->get('matching_user_answer')
    ->referencedEntities();
}