You are here

public function Status::getOwner in Heartbeat 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

modules/statusmessage/src/Entity/Status.php, line 114

Class

Status

Namespace

Drupal\statusmessage\Entity

Code

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