public function ShortAnswerQuestion::getMaximumScore in Quiz 8.5
Same name and namespace in other branches
- 8.6 question_types/quiz_short_answer/src/Plugin/quiz/QuizQuestion/ShortAnswerQuestion.php \Drupal\quiz_short_answer\Plugin\quiz\QuizQuestion\ShortAnswerQuestion::getMaximumScore()
- 6.x question_types/quiz_short_answer/src/Plugin/quiz/QuizQuestion/ShortAnswerQuestion.php \Drupal\quiz_short_answer\Plugin\quiz\QuizQuestion\ShortAnswerQuestion::getMaximumScore()
Get the maximum possible score for this question.
Return value
int
Overrides QuizQuestionEntityTrait::getMaximumScore
File
- question_types/
quiz_short_answer/ src/ Plugin/ quiz/ QuizQuestion/ ShortAnswerQuestion.php, line 96
Class
- ShortAnswerQuestion
- @QuizQuestion ( id = "short_answer", label = Plugin annotation @Translation("Short answer question"), handlers = { "response" = "\Drupal\quiz_short_answer\Plugin\quiz\QuizQuestion\ShortAnswerResponse" } )
Namespace
Drupal\quiz_short_answer\Plugin\quiz\QuizQuestionCode
public function getMaximumScore() {
return Drupal::config('quiz.settings.question.short_answer')
->get('default_max_score');
}