public function LatestActivity::setTrainingId in Opigno Learning path 8
Same name and namespace in other branches
- 3.x src/Entity/LatestActivity.php \Drupal\opigno_learning_path\Entity\LatestActivity::setTrainingId()
Sets the training ID.
Parameters
int $id: The training ID.
Return value
\Drupal\opigno_learning_path\LatestActivityInterface The called entity.
Overrides LatestActivityInterface::setTrainingId
File
- src/
Entity/ LatestActivity.php, line 86
Class
- LatestActivity
- Defines the Latest Activity entity.
Namespace
Drupal\opigno_learning_path\EntityCode
public function setTrainingId($id) {
$this
->set('training', $id);
return $this;
}