public function H5PReportXAPIData::getCorrectResponsesPattern in Opigno module 3.x
Same name and namespace in other branches
- 8 ActivityTypes/opigno_h5p/src/H5PReportXAPIData.php \Drupal\opigno_h5p\H5PReportXAPIData::getCorrectResponsesPattern()
Get the correct response patterns.
File
- ActivityTypes/
opigno_h5p/ src/ H5PReportXAPIData.php, line 179
Class
- H5PReportXAPIData
- Class H5PReportXAPIData.
Namespace
Drupal\opigno_h5pCode
public function getCorrectResponsesPattern() {
$correctResponsesPattern = $this
->getObjectDefinition('correctResponsesPattern');
if (is_array($correctResponsesPattern)) {
return json_encode($correctResponsesPattern);
}
return '';
}