You are here

public function QuizSessionInterface::setCurrentQuestion in Quiz 6.x

Set the user's current question.

Parameters

Quiz $quiz: The quiz ID.

int $current_question: The current question, starting at 1.

1 method overrides QuizSessionInterface::setCurrentQuestion()
QuizSession::setCurrentQuestion in src/Services/QuizSession.php
Set the user's current question.

File

src/Services/QuizSessionInterface.php, line 95

Class

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

Namespace

Drupal\quiz\Services

Code

public function setCurrentQuestion(Quiz $quiz, int $current_question);