You are here

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

Sets the training ID.

Parameters

int $id: The training ID.

Return value

\Drupal\opigno_learning_path\LPStatusInterface The called entity.

Overrides LPStatusInterface::setTrainingId

File

src/Entity/LPStatus.php, line 65

Class

LPStatus
Defines the User Learning Path attempt status entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

public function setTrainingId($id) {
  $this
    ->set('gid', $id);
  return $this;
}