You are here

public function VoteInterface::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

1 method overrides VoteInterface::setSource()
Vote::setSource in src/Entity/Vote.php
Sets the source of the vote. It is the user's IP address hash.

File

src/VoteInterface.php, line 119

Class

VoteInterface
Provides an interface defining a vote entity.

Namespace

Drupal\votingapi

Code

public function setSource($source);