public function ScaleQuestion::getMaximumScore in Quiz 8.4
Implementation of getMaximumScore.
Overrides QuizQuestion::getMaximumScore
See also
QuizQuestion#getMaximumScore()
File
- question_types/
scale/ lib/ Drupal/ scale/ ScaleQuestion.php, line 552 - The main classes for the short answer question type.
Class
- ScaleQuestion
- Extension of QuizQuestion.
Namespace
Drupal\scaleCode
public function getMaximumScore() {
// In some use-cases we want to reward users for answering a survey question.
// This is why 1 is returned and not zero.
return 1;
}