You are here

public function TrueFalseProcessor::generateHTML in Opigno module 8

Same name and namespace in other branches
  1. 3.x ActivityTypes/opigno_h5p/src/TypeProcessors/TrueFalseProcessor.php \Drupal\opigno_h5p\TypeProcessors\TrueFalseProcessor::generateHTML()

Options for interaction and generates a human readable HTML report.

@inheritdoc

Overrides TypeProcessor::generateHTML

File

ActivityTypes/opigno_h5p/src/TypeProcessors/TrueFalseProcessor.php, line 17

Class

TrueFalseProcessor
Class FillInProcessor.

Namespace

Drupal\opigno_h5p\TypeProcessors

Code

public function generateHTML($description, $crp, $response, $extras = NULL, $scoreSettings = NULL) {

  // We need some style for our report.
  $this
    ->setStyle('opigno_h5p/opigno_h5p.true-false');
  return $this
    ->getContent($description, $crp, $response, $scoreSettings) . $this
    ->generateFooter();
}