You are here

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\fivestar

Code

public function recalculateResults(FieldableEntityInterface $entity) {
  $this->voteResultManager
    ->recalculateResults($entity
    ->getEntityTypeId(), $entity
    ->id(), $entity
    ->bundle());
}