public function QuizResultAnswerBroken::score in Quiz 8.6
Same name and namespace in other branches
- 8.5 src/Entity/QuizResultAnswerBroken.php \Drupal\quiz\Entity\QuizResultAnswerBroken::score()
- 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
Namespace
Drupal\quiz\EntityCode
public function score($response) {
}