public function QuizQuestionResponse::getReportFormQuestion in Quiz 8.4
get the question part of the reportForm
Parameters
$showpoints:
$showfeedback:
Return value
FAPI form array holding the question
1 call to QuizQuestionResponse::getReportFormQuestion()
- QuizQuestionResponse::getReportForm in question_types/
quiz_question/ lib/ Drupal/ quiz_question/ QuizQuestionResponse.php - Creates the report form for the admin pages, and for when a user gets feedback after answering questions.
File
- question_types/
quiz_question/ lib/ Drupal/ quiz_question/ QuizQuestionResponse.php, line 249
Class
Namespace
Drupal\quiz_questionCode
public function getReportFormQuestion($showpoints = TRUE, $showfeedback = TRUE) {
$node = node_load($this->question
->id());
$items = $node->{'body'}
->getValue();
return field_view_value($node, 'body', $items[0]['value']);
}