public function Vote::setSource in Voting API 8.3
Sets the source of the vote. It is the user's IP address hash.
Parameters
string $source: The source of the vote.
Return value
$this
Overrides VoteInterface::setSource
File
- src/
Entity/ Vote.php, line 161
Class
- Vote
- Defines the Vote entity.
Namespace
Drupal\votingapi\EntityCode
public function setSource($source) {
return $this
->set('vote_source', $source);
}