You are here

public function Vote::getSource in Voting API 8.3

Returns the source of the vote. It is the user's IP address hash.

Return value

string The vote source.

Overrides VoteInterface::getSource

File

src/Entity/Vote.php, line 154

Class

Vote
Defines the Vote entity.

Namespace

Drupal\votingapi\Entity

Code

public function getSource() {
  return $this
    ->get('vote_source')->value;
}