protected function QuizQuestionResponse::getFormat in Quiz 8.4
Utility function that returns the format of the node body
2 calls to QuizQuestionResponse::getFormat()
- MatchingResponse::getReportFormResponse in question_types/
matching/ lib/ Drupal/ matching/ MatchingResponse.php - Implementation of getReportFormResponse
- TrueFalseResponse::getReportFormResponse in question_types/
truefalse/ lib/ Drupal/ truefalse/ TrueFalseResponse.php - Implementation of getReportFormResponse
File
- question_types/
quiz_question/ lib/ Drupal/ quiz_question/ QuizQuestionResponse.php, line 328
Class
Namespace
Drupal\quiz_questionCode
protected function getFormat() {
$body = field_get_items($this->question, 'body');
return $body ? $body[0]['format'] : NULL;
}