You are here

public function PollStorageInterface::cancelVote in Poll 8

Cancel a user's vote.

Parameters

PollInterface $poll:

AccountInterface $account:

Return value

mixed

Deprecated

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

See also

\Drupal\poll\PollVoteStorageInterface::cancelVote()

1 method overrides PollStorageInterface::cancelVote()
PollStorage::cancelVote in src/PollStorage.php
Cancel a user's vote.

File

src/PollStorageInterface.php, line 40

Class

PollStorageInterface
Defines a common interface for poll entity controller classes.

Namespace

Drupal\poll

Code

public function cancelVote(PollInterface $poll, AccountInterface $account = NULL);