public function QuizSessionInterface::setTemporaryResult in Quiz 6.x
Set the user's temporary result ID (for feedback/review).
Parameters
QuizResult $quiz_result: The quiz result.
1 method overrides QuizSessionInterface::setTemporaryResult()
- QuizSession::setTemporaryResult in src/
Services/ QuizSession.php - Set the user's temporary result ID (for feedback/review).
File
- src/
Services/ QuizSessionInterface.php, line 73
Class
- QuizSessionInterface
- Stores quiz state in the anonymous user's session.
Namespace
Drupal\quiz\ServicesCode
public function setTemporaryResult(QuizResult $quiz_result);