private function ChoiceProcessor::isLongChoice in Opigno module 8
Same name and namespace in other branches
- 3.x ActivityTypes/opigno_h5p/src/TypeProcessors/ChoiceProcessor.php \Drupal\opigno_h5p\TypeProcessors\ChoiceProcessor::isLongChoice()
Determine if choice is a long choice interaction type.
1 call to ChoiceProcessor::isLongChoice()
- ChoiceProcessor::generateHTML in ActivityTypes/
opigno_h5p/ src/ TypeProcessors/ ChoiceProcessor.php - Determines options for interaction, generates a human readable HTML report.
File
- ActivityTypes/
opigno_h5p/ src/ TypeProcessors/ ChoiceProcessor.php, line 113
Class
- ChoiceProcessor
- Class FillInProcessor.
Namespace
Drupal\opigno_h5p\TypeProcessorsCode
private function isLongChoice($extras) {
$extensions = isset($extras->extensions) ? $extras->extensions : (object) [];
// Determine if line-breaks extension exists.
return isset($extensions->{'https://h5p.org/x-api/line-breaks'});
}