public function LPStatus::getTraining in Opigno Learning path 3.x
Same name and namespace in other branches
- 8 src/Entity/LPStatus.php \Drupal\opigno_learning_path\Entity\LPStatus::getTraining()
Gets the training entity.
Return value
\Drupal\group\Entity\GroupInterface The training entity.
Overrides LPStatusInterface::getTraining
File
- src/
Entity/ LPStatus.php, line 73
Class
- LPStatus
- Defines the User Learning Path attempt status entity.
Namespace
Drupal\opigno_learning_path\EntityCode
public function getTraining() {
return $this
->get('gid')->entity;
}