public function QuizPageResponse::score in Quiz 8.6
Same name and namespace in other branches
- 8.5 question_types/quiz_page/src/Plugin/quiz/QuizQuestion/QuizPageResponse.php \Drupal\quiz_page\Plugin\quiz\QuizQuestion\QuizPageResponse::score()
- 6.x question_types/quiz_page/src/Plugin/quiz/QuizQuestion/QuizPageResponse.php \Drupal\quiz_page\Plugin\quiz\QuizQuestion\QuizPageResponse::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
- question_types/
quiz_page/ src/ Plugin/ quiz/ QuizQuestion/ QuizPageResponse.php, line 12
Class
- QuizPageResponse
- Extension of QuizQuestionResponse.
Namespace
Drupal\quiz_page\Plugin\quiz\QuizQuestionCode
public function score(array $values) {
}