public function LPStatus::getScore in Opigno Learning path 8
Same name and namespace in other branches
- 3.x src/Entity/LPStatus.php \Drupal\opigno_learning_path\Entity\LPStatus::getScore()
Returns the user score.
Return value
int|null The user score, or NULL in case the user score field has not been set on the entity.
Overrides LPStatusInterface::getScore
File
- src/
Entity/ LPStatus.php, line 134
Class
- LPStatus
- Defines the User Learning Path attempt status entity.
Namespace
Drupal\opigno_learning_path\EntityCode
public function getScore() {
return $this
->get('score')->value;
}