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