You are here

public function LatestActivity::getTraining 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::getTraining()

Gets the training entity.

Return value

\Drupal\group\Entity\GroupInterface The training entity.

Overrides LatestActivityInterface::getTraining

File

src/Entity/LatestActivity.php, line 94

Class

LatestActivity
Defines the Latest Activity entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

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