You are here

public function VoteResult::getVotedEntityId in Voting API 8.3

Returns the ID of the entity that the vote was cast on.

Return value

int The entity ID.

Overrides VoteResultInterface::getVotedEntityId

File

src/Entity/VoteResult.php, line 56

Class

VoteResult
Defines the VoteResult entity.

Namespace

Drupal\votingapi\Entity

Code

public function getVotedEntityId() {
  return $this
    ->get('entity_id')->value;
}