public function QuizQuestionRelationship::getQuiz in Quiz 8.6
Same name and namespace in other branches
- 8.5 src/Entity/QuizQuestionRelationship.php \Drupal\quiz\Entity\QuizQuestionRelationship::getQuiz()
- 6.x src/Entity/QuizQuestionRelationship.php \Drupal\quiz\Entity\QuizQuestionRelationship::getQuiz()
Return value
File
- src/
Entity/ QuizQuestionRelationship.php, line 112
Class
- QuizQuestionRelationship
- Defines the Quiz entity class.
Namespace
Drupal\quiz\EntityCode
public function getQuiz() {
return \Drupal::entityTypeManager()
->getStorage('quiz')
->loadRevision($this
->get('quiz_vid')
->getString());
}