You are here

public function LPStatus::getTraining in Opigno Learning path 8

Same name and namespace in other branches
  1. 3.x 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 68

Class

LPStatus
Defines the User Learning Path attempt status entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

public function getTraining() {
  return $this
    ->get('gid')->entity;
}