public function LPStatus::getFinished in Opigno Learning path 8
Same name and namespace in other branches
- 3.x src/Entity/LPStatus.php \Drupal\opigno_learning_path\Entity\LPStatus::getFinished()
Gets the training finished timestamp.
Return value
int The timestamp.
Overrides LPStatusInterface::getFinished
File
- src/
Entity/ LPStatus.php, line 149
Class
- LPStatus
- Defines the User Learning Path attempt status entity.
Namespace
Drupal\opigno_learning_path\EntityCode
public function getFinished() {
$value = $this
->get('finished')
->getValue();
if (empty($value)) {
return NULL;
}
return $value[0]['value'];
}