You are here

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

Overrides EventInterface::getUnitId

File

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

Class

Event
Defines the Event entity.

Namespace

Drupal\bat_event\Entity

Code

public function getUnitId() {
  return $this
    ->get('unit_id')->target_id;
}