You are here

public function PollStorage::getUserVote in Poll 8

Get a user's votes for a poll.

Parameters

PollInterface $poll:

Return value

mixed

Overrides PollStorageInterface::getUserVote

Deprecated

in Drupal 8.x-1.0. Use \Drupal\poll\PollVoteStorageInterface::getUserVote() instead.

See also

\Drupal\poll\PollVoteStorageInterface::getUserVote()

File

src/PollStorage.php, line 33

Class

PollStorage
Controller class for polls.

Namespace

Drupal\poll

Code

public function getUserVote(PollInterface $poll) {
  return \Drupal::service('poll_vote.storage')
    ->getUserVote($poll);
}