public function QuizSessionInterface::getResult in Quiz 6.x
Get the current user's result for a Quiz in the session
Parameters
Quiz $quiz: The quiz.
1 method overrides QuizSessionInterface::getResult()
- QuizSession::getResult in src/
Services/ QuizSession.php - Get the current user's result for a Quiz in the session
File
- src/
Services/ QuizSessionInterface.php, line 51
Class
- QuizSessionInterface
- Stores quiz state in the anonymous user's session.
Namespace
Drupal\quiz\ServicesCode
public function getResult(Quiz $quiz = NULL);