You are here

public function LongAnswerResponse::getReportFormAnswerFeedback in Quiz 8.4

Overrides QuizQuestionResponse::getReportFormAnswerFeedback

File

question_types/long_answer/lib/Drupal/long_answer/LongAnswerResponse.php, line 241

Class

LongAnswerResponse
Extension of QuizQuestionResponse

Namespace

Drupal\long_answer

Code

public function getReportFormAnswerFeedback($showpoints = TRUE, $showfeedback = TRUE, $allow_scoring = FALSE) {
  if (quiz_access_to_score() && $allow_scoring) {
    return array(
      '#title' => t('Enter feedback'),
      '#type' => 'textarea',
      '#default_value' => $this->answer_feedback,
      '#attributes' => array(
        'class' => array(
          'quiz-report-score',
        ),
      ),
    );
  }
  return FALSE;
}