You are here

public function PollStorage::getVotes in Poll 8

Get all votes for a poll.

Parameters

PollInterface $poll:

Return value

mixed

Overrides PollStorageInterface::getVotes

Deprecated

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

See also

\Drupal\poll\PollVoteStorageInterface::getVotes()

File

src/PollStorage.php, line 47

Class

PollStorage
Controller class for polls.

Namespace

Drupal\poll

Code

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