You are here

function QuizQuestionController::checkFeedbackAccess in Quiz 8.5

Same name and namespace in other branches
  1. 8.6 src/Controller/QuizQuestionController.php \Drupal\quiz\Controller\QuizQuestionController::checkFeedbackAccess()
  2. 6.x src/Controller/QuizQuestionController.php \Drupal\quiz\Controller\QuizQuestionController::checkFeedbackAccess()

Translate the numeric question index to a question result answer, and run the "feedback" entity access check on it.

Parameters

Quiz $quiz:

int $question_number:

1 string reference to 'QuizQuestionController::checkFeedbackAccess'
quiz.routing.yml in ./quiz.routing.yml
quiz.routing.yml

File

src/Controller/QuizQuestionController.php, line 197

Class

QuizQuestionController

Namespace

Drupal\quiz\Controller

Code

function checkFeedbackAccess(Quiz $quiz, $question_number) {
  return $this
    ->checkEntityAccess('feedback', $quiz, $question_number);
}