You are here

public function MatchingProcessor::generateTableHeader in Opigno module 3.x

Same name and namespace in other branches
  1. 8 ActivityTypes/opigno_h5p/src/TypeProcessors/MatchingProcessor.php \Drupal\opigno_h5p\TypeProcessors\MatchingProcessor::generateTableHeader()

Generate table header.

Return value

string Table header element as a string.

1 call to MatchingProcessor::generateTableHeader()
MatchingProcessor::generateTable in ActivityTypes/opigno_h5p/src/TypeProcessors/MatchingProcessor.php
Generates response table, response pattern, dropzones and draggables.

File

ActivityTypes/opigno_h5p/src/TypeProcessors/MatchingProcessor.php, line 212

Class

MatchingProcessor
Class MatchingProcessor.

Namespace

Drupal\opigno_h5p\TypeProcessors

Code

public function generateTableHeader() {

  // Empty first item.
  $html = '<th class="h5p-matching-header-dropzone">Dropzone</th>' . '<th class="h5p-matching-header-correct">Correct Answers</th>' . '<th class="h5p-matching-header-user">Your answers</th>';
  return '<tr class="h5p-matching-table-heading">' . $html . '</tr>';
}