You are here

public function QuizSessionInterface::setResult in Quiz 6.x

Set a quiz result for the current user.

Parameters

QuizResult $quiz_result: The quiz result.

1 method overrides QuizSessionInterface::setResult()
QuizSession::setResult in src/Services/QuizSession.php
Set a quiz result for the current user.

File

src/Services/QuizSessionInterface.php, line 65

Class

QuizSessionInterface
Stores quiz state in the anonymous user's session.

Namespace

Drupal\quiz\Services

Code

public function setResult(QuizResult $quiz_result);