You are here

public function Group::getEvent in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/Entity/Group.php \Drupal\rng\Entity\Group::getEvent()
  2. 3.x src/Entity/Group.php \Drupal\rng\Entity\Group::getEvent()

Get associated event.

Return value

\Drupal\Core\Entity\ContentEntityInterface|NULL An entity, or NULL if the event does not exist.

Overrides GroupInterface::getEvent

File

src/Entity/Group.php, line 52

Class

Group
Defines the application group entity class.

Namespace

Drupal\rng\Entity

Code

public function getEvent() {
  return $this
    ->get('event')->entity;
}