public function QuizResult::getQuiz in Quiz 6.x
Same name and namespace in other branches
- 8.6 src/Entity/QuizResult.php \Drupal\quiz\Entity\QuizResult::getQuiz()
- 8.5 src/Entity/QuizResult.php \Drupal\quiz\Entity\QuizResult::getQuiz()
Get the Quiz of this result.
Return value
4 calls to QuizResult::getQuiz()
- QuizResult::isTimeReached in src/
Entity/ QuizResult.php - Determine if the time limit has been reached for this attempt.
- QuizResult::label in src/
Entity/ QuizResult.php - Get the label for this quiz result.
- QuizResult::maintainResults in src/
Entity/ QuizResult.php - Mark results as invalid for a quiz according to the keep results setting.
- QuizResult::setQuestion in src/
Entity/ QuizResult.php - Update the session for this quiz to the active question.
File
- src/
Entity/ QuizResult.php, line 594
Class
- QuizResult
- Defines the Quiz entity class.
Namespace
Drupal\quiz\EntityCode
public function getQuiz() {
return Drupal::entityTypeManager()
->getStorage('quiz')
->loadRevision($this
->get('vid')
->getString());
}