public function Meeting::setTraining in Opigno Moxtra 3.x
Same name and namespace in other branches
- 8 src/Entity/Meeting.php \Drupal\opigno_moxtra\Entity\Meeting::setTraining()
Sets the related training.
Parameters
\Drupal\group\Entity\GroupInterface|null $training: The related training entity.
Return value
$this
Overrides MeetingInterface::setTraining
File
- src/
Entity/ Meeting.php, line 194
Class
- Meeting
- Defines the Workspace entity.
Namespace
Drupal\opigno_moxtra\EntityCode
public function setTraining($training) {
$this
->set('training', [
'target_id' => $training
->id(),
]);
return $this;
}