You are here

public function State::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_event/src/Entity/State.php, line 97
Contains \Drupal\bat_event\Entity\State.

Class

State
Defines the State entity.

Namespace

Drupal\bat_event\Entity

Code

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