You are here

public function TypeGroup::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

src/Entity/TypeGroup.php, line 83
Contains \Drupal\bat\Entity\TypeGroup.

Class

TypeGroup
Defines the Type Group entity.

Namespace

Drupal\bat\Entity

Code

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