You are here

public function Meeting::setTrainingId in Opigno Moxtra 8

Same name and namespace in other branches
  1. 3.x src/Entity/Meeting.php \Drupal\opigno_moxtra\Entity\Meeting::setTrainingId()

Sets the ID of the related training.

Parameters

int|null $id: The ID of the related training.

Return value

$this

Overrides MeetingInterface::setTrainingId

File

src/Entity/Meeting.php, line 179

Class

Meeting
Defines the Workspace entity.

Namespace

Drupal\opigno_moxtra\Entity

Code

public function setTrainingId($id) {
  $this
    ->set('training', [
    'target_id' => $id,
  ]);
  return $this;
}