You are here

public function Meeting::getTraining in Opigno Moxtra 8

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

Returns the related training.

Return value

\Drupal\group\Entity\GroupInterface|null The related training entity, or NULL in case training ID field has not been set on the entity.

Overrides MeetingInterface::getTraining

1 call to Meeting::getTraining()
Meeting::isMember in src/Entity/Meeting.php
Checks if the user is a member of the live meeting or related training.

File

src/Entity/Meeting.php, line 187

Class

Meeting
Defines the Workspace entity.

Namespace

Drupal\opigno_moxtra\Entity

Code

public function getTraining() {
  return $this
    ->get('training')->entity;
}