You are here

public function Vote::getOwner in Voting API 8.3

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/Vote.php, line 110

Class

Vote
Defines the Vote entity.

Namespace

Drupal\votingapi\Entity

Code

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