You are here

public function H5PReportXAPIData::getDescription in Opigno module 3.x

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

Get the description of the interaction.

File

ActivityTypes/opigno_h5p/src/H5PReportXAPIData.php, line 167

Class

H5PReportXAPIData
Class H5PReportXAPIData.

Namespace

Drupal\opigno_h5p

Code

public function getDescription() {
  $description = $this
    ->getObjectDefinition('description');
  if ($description !== '') {
    $description = isset($description->{'en-US'}) ? $description->{'en-US'} : '';
  }
  return $description;
}