You are here

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

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

modules/bat_booking/src/Entity/Booking.php, line 64
Contains \Drupal\bat_booking\Entity\Booking.

Class

Booking
Defines the Booking entity.

Namespace

Drupal\bat_booking\Entity

Code

public function getOwner() {
  return $this
    ->get('uid')->entity;
}