public function VoteResultInterface::setVotedEntityId in Voting API 8.3
Sets the ID of the entity that the vote was cast on.
Parameters
int $id: The entity ID.
Return value
$this
1 method overrides VoteResultInterface::setVotedEntityId()
- VoteResult::setVotedEntityId in src/
Entity/ VoteResult.php - Sets the ID of the entity that the vote was cast on.
File
- src/
VoteResultInterface.php, line 47
Class
- VoteResultInterface
- Provides an interface defining a vote entity.
Namespace
Drupal\votingapiCode
public function setVotedEntityId($id);