You are here

public function Meeting::getTrainingId in Opigno Moxtra 8

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

Returns the ID of the related training.

Return value

int|null The ID of the related training, or NULL in case training ID field has not been set on the entity.

Overrides MeetingInterface::getTrainingId

File

src/Entity/Meeting.php, line 172

Class

Meeting
Defines the Workspace entity.

Namespace

Drupal\opigno_moxtra\Entity

Code

public function getTrainingId() {
  return $this
    ->get('training')->target_id;
}