You are here

public function LPStatus::getTrainingId 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::getTrainingId()

Gets the training ID.

Return value

int The training ID.

Overrides LPStatusInterface::getTrainingId

File

src/Entity/LPStatus.php, line 58

Class

LPStatus
Defines the User Learning Path attempt status entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

public function getTrainingId() {
  return $this
    ->get('gid')->target_id;
}