You are here

public function QuizSessionInterface::isTakingQuiz in Quiz 6.x

Determine if the current user user has a result for this quiz or a temporary quiz in the session.

Parameters

Quiz $quiz: The quiz.

1 method overrides QuizSessionInterface::isTakingQuiz()
QuizSession::isTakingQuiz in src/Services/QuizSession.php
Determine if the current user user has a result for this quiz or a temporary quiz in the session.

File

src/Services/QuizSessionInterface.php, line 27

Class

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

Namespace

Drupal\quiz\Services

Code

public function isTakingQuiz(Quiz $quiz = NULL);