public function VoteResultManager::recalculateResults in Fivestar 8
Recalculate votes results.
Parameters
\Drupal\Core\Entity\FieldableEntityInterface $entity:
File
- src/
VoteResultManager.php, line 87
Class
- VoteResultManager
- Contains methods for managing vote results.
Namespace
Drupal\fivestarCode
public function recalculateResults(FieldableEntityInterface $entity) {
$this->voteResultManager
->recalculateResults($entity
->getEntityTypeId(), $entity
->id(), $entity
->bundle());
}