public function LPResult::setLearningPath in Opigno Learning path 3.x
Same name and namespace in other branches
- 8 src/Entity/LPResult.php \Drupal\opigno_learning_path\Entity\LPResult::setLearningPath()
Sets Learning Path.
File
- src/
Entity/ LPResult.php, line 93
Class
- LPResult
- Defines the Learning Path Content entity.
Namespace
Drupal\opigno_learning_path\EntityCode
public function setLearningPath(Group $learning_path) {
// TODO: Check the group type before saving.
$this
->setLearningPathId($learning_path
->id());
return $this;
}