public function MatchingProcessor::generateRows in Opigno module 3.x
Same name and namespace in other branches
- 8 ActivityTypes/opigno_h5p/src/TypeProcessors/MatchingProcessor.php \Drupal\opigno_h5p\TypeProcessors\MatchingProcessor::generateRows()
Generate rows of table.
1 call to MatchingProcessor::generateRows()
- 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 138
Class
- MatchingProcessor
- Class MatchingProcessor.
Namespace
Drupal\opigno_h5p\TypeProcessorsCode
public function generateRows($mappedCRP, $mappedResponse, $dropzones, $draggables) {
$html = '';
foreach ($dropzones as $index => $value) {
$html .= $this
->generateDropzoneRows($value, $draggables, isset($mappedCRP[$index]) ? $mappedCRP[$index] : [], isset($mappedResponse[$index]) ? $mappedResponse[$index] : []);
}
return $html;
}