You are here

public function LatestActivity::getTrainingId in Opigno Learning path 8

Same name and namespace in other branches
  1. 3.x src/Entity/LatestActivity.php \Drupal\opigno_learning_path\Entity\LatestActivity::getTrainingId()

Gets the training ID.

Return value

int The training ID.

Overrides LatestActivityInterface::getTrainingId

File

src/Entity/LatestActivity.php, line 79

Class

LatestActivity
Defines the Latest Activity entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

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