public function FieldVoteResultBase::calculateResult in Votingapi Widgets 8
Calculate results.
Overrides VoteResultFunctionInterface::calculateResult
3 methods override FieldVoteResultBase::calculateResult()
- FieldAverage::calculateResult in src/
Plugin/ VoteResultFunction/ FieldAverage.php - Calculate results.
- FieldCount::calculateResult in src/
Plugin/ VoteResultFunction/ FieldCount.php - Calculate results.
- FieldUseful::calculateResult in src/
Plugin/ VoteResultFunction/ FieldUseful.php - Calculate results.
File
- src/
FieldVoteResultBase.php, line 29
Class
- FieldVoteResultBase
- FieldVoteResultBase class.
Namespace
Drupal\votingapi_widgetsCode
public function calculateResult($votes) {
return count($votes);
}