You are here

public function UnitType::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_unit/src/Entity/UnitType.php, line 85
Contains \Drupal\bat_unit\Entity\UnitType.

Class

UnitType
Defines the Unit type entity.

Namespace

Drupal\bat_unit\Entity

Code

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