QuizPageResponse.php in Quiz 6.x
File
question_types/quiz_page/src/Plugin/quiz/QuizQuestion/QuizPageResponse.php
View source
<?php
namespace Drupal\quiz_page\Plugin\quiz\QuizQuestion;
use Drupal\quiz\Entity\QuizResultAnswer;
class QuizPageResponse extends QuizResultAnswer {
public function score(array $values) : ?int {
return NULL;
}
public function isCorrect() : bool {
return TRUE;
}
public function getResponse() {
return NULL;
}
public function getReportForm() : array {
return [
'#no_report' => TRUE,
];
}
}