public function VoteResult::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
Overrides VoteResultInterface::setVotedEntityId
File
- src/
Entity/ VoteResult.php, line 63
Class
- VoteResult
- Defines the VoteResult entity.
Namespace
Drupal\votingapi\EntityCode
public function setVotedEntityId($id) {
return $this
->set('entity_id', $id);
}