You are here

public function QuizSessionInterface::getCurrentQuestion in Quiz 6.x

Get the user's current question index for a quiz in the session.

Parameters

Quiz $quiz: The quiz.

Return value

int Question index starting at 1.

1 method overrides QuizSessionInterface::getCurrentQuestion()
QuizSession::getCurrentQuestion in src/Services/QuizSession.php
Get the user's current question index for a quiz in the session.

File

src/Services/QuizSessionInterface.php, line 84

Class

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

Namespace

Drupal\quiz\Services

Code

public function getCurrentQuestion(Quiz $quiz);