You are here

public function LPStatus::getStarted in Opigno Learning path 3.x

Same name and namespace in other branches
  1. 8 src/Entity/LPStatus.php \Drupal\opigno_learning_path\Entity\LPStatus::getStarted()

Gets the training started timestamp.

Return value

int The timestamp.

Overrides LPStatusInterface::getStarted

File

src/Entity/LPStatus.php, line 182

Class

LPStatus
Defines the User Learning Path attempt status entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

public function getStarted() {
  $value = $this
    ->get('started')
    ->getValue();
  if (empty($value)) {
    return NULL;
  }
  return $value[0]['value'];
}