You are here

public function Event::getUnit in Booking and Availability Management Tools for Drupal 8

Overrides EventInterface::getUnit

File

modules/bat_event/src/Entity/Event.php, line 121
Contains \Drupal\bat_event\Entity\Event.

Class

Event
Defines the Event entity.

Namespace

Drupal\bat_event\Entity

Code

public function getUnit() {
  return $this
    ->get('unit_id')->entity;
}