public function MatchingProcessor::generateTableHeader in Opigno module 8
Same name and namespace in other branches
- 3.x 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\TypeProcessorsCode
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>';
}