public function PollStorage::deleteVotes in Poll 8
Delete a user's votes for a poll.
Parameters
PollInterface $poll:
Return value
mixed
Overrides PollStorageInterface::deleteVotes
Deprecated
in Drupal 8.x-1.0. Use \Drupal\poll\PollVoteStorageInterface::deleteVotes() instead.
See also
\Drupal\poll\PollVoteStorageInterface::deleteVotes()
File
- src/
PollStorage.php, line 26
Class
- PollStorage
- Controller class for polls.
Namespace
Drupal\pollCode
public function deleteVotes(PollInterface $poll) {
return \Drupal::service('poll_vote.storage')
->deleteVotes($poll);
}