You are here

public function QuizResultAnswerBroken::score in Quiz 8.6

Same name and namespace in other branches
  1. 8.5 src/Entity/QuizResultAnswerBroken.php \Drupal\quiz\Entity\QuizResultAnswerBroken::score()
  2. 6.x src/Entity/QuizResultAnswerBroken.php \Drupal\quiz\Entity\QuizResultAnswerBroken::score()

Calculate the unscaled score in points for this question response.

Parameters

array $values: A part of form state values with the question input from the user.

Return value

int The unscaled point value of the answer.

Overrides QuizResultAnswerEntityTrait::score

File

src/Entity/QuizResultAnswerBroken.php, line 11

Class

QuizResultAnswerBroken

Namespace

Drupal\quiz\Entity

Code

public function score($response) {
}