You are here

abstract public function QuizQuestionEntityTrait::getMaximumScore in Quiz 8.6

Same name and namespace in other branches
  1. 8.5 src/Entity/QuizQuestionEntityTrait.php \Drupal\quiz\Entity\QuizQuestionEntityTrait::getMaximumScore()

Get the maximum possible score for this question.

Return value

int

1 call to QuizQuestionEntityTrait::getMaximumScore()
QuizQuestion::save in src/Entity/QuizQuestion.php
Saves an entity permanently.
8 methods override QuizQuestionEntityTrait::getMaximumScore()
LongAnswerQuestion::getMaximumScore in question_types/quiz_long_answer/src/Plugin/quiz/QuizQuestion/LongAnswerQuestion.php
Get the maximum possible score for this question.
MatchingQuestion::getMaximumScore in question_types/quiz_matching/src/Plugin/quiz/QuizQuestion/MatchingQuestion.php
Get the maximum possible score for this question.
MultichoiceQuestion::getMaximumScore in question_types/quiz_multichoice/src/Plugin/quiz/QuizQuestion/MultichoiceQuestion.php
Get the maximum possible score for this question.
QuizDirectionsQuestion::getMaximumScore in question_types/quiz_directions/src/Plugin/quiz/QuizQuestion/QuizDirectionsQuestion.php
Get the maximum possible score for this question.
QuizPageQuestion::getMaximumScore in question_types/quiz_page/src/Plugin/quiz/QuizQuestion/QuizPageQuestion.php
Implementation of getMaximumScore().

... See full list

File

src/Entity/QuizQuestionEntityTrait.php, line 159

Class

QuizQuestionEntityTrait
A trait all Quiz question strongly typed entity bundles must use.

Namespace

Drupal\quiz\Entity

Code

public abstract function getMaximumScore();