public function QuizResultAnswerBroken::score in Quiz 6.x
Same name and namespace in other branches
- 8.6 src/Entity/QuizResultAnswerBroken.php \Drupal\quiz\Entity\QuizResultAnswerBroken::score()
- 8.5 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|NULL The unscaled point value of the answer. If a point value is final, questions should make sure to run setEvaluated(). return NULL if the answer is not automatically scored.
Overrides QuizAnswerInterface::score
File
- src/
Entity/ QuizResultAnswerBroken.php, line 11
Class
Namespace
Drupal\quiz\EntityCode
public function score(array $values) : ?int {
return NULL;
}