You are here

public function LongAnswerActivityAnswer::getAnswerResultItemHeaders in Opigno module 8

Same name and namespace in other branches
  1. 3.x ActivityTypes/opigno_long_answer/src/Plugin/ActivityAnswer/LongAnswerActivityAnswer.php \Drupal\opigno_long_answer\Plugin\ActivityAnswer\LongAnswerActivityAnswer::getAnswerResultItemHeaders()

File

ActivityTypes/opigno_long_answer/src/Plugin/ActivityAnswer/LongAnswerActivityAnswer.php, line 64

Class

LongAnswerActivityAnswer
Class LongAnswerActivityAnswer.

Namespace

Drupal\opigno_long_answer\Plugin\ActivityAnswer

Code

public function getAnswerResultItemHeaders(OpignoAnswerInterface $answer) {
  $headings = [
    $this
      ->t('Your answer'),
  ];
  if (!$answer
    ->isEvaluated()) {
    $headings[] = $this
      ->t('Result');
  }
  return $headings;
}