You are here

public function Heartbeat::getOwner in Heartbeat 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/Heartbeat.php, line 201

Class

Heartbeat

Namespace

Drupal\heartbeat\Entity

Code

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