public function RateCount::calculateResult in Rate 8.2
Calculate results.
Overrides RateVoteResultBase::calculateResult
File
- src/
Plugin/ VoteResultFunction/ RateCount.php, line 22
Class
- RateCount
- A sum of a set of votes.
Namespace
Drupal\rate\Plugin\VoteResultFunctionCode
public function calculateResult($votes) {
$votes = $this
->getVotesForField($votes);
return count($votes);
}