You are here

protected function QuizQuestionEntityTrait::autoUpdateMaxScore in Quiz 8.6

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

This may be overridden in subclasses. If it returns true, it means the max_score is updated for all occurrences of this question in quizzes.

Return value

bool

File

src/Entity/QuizQuestionEntityTrait.php, line 215

Class

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

Namespace

Drupal\quiz\Entity

Code

protected function autoUpdateMaxScore() {
  return FALSE;
}