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