public function VotingApiReactionManager::recalculateResults in Voting API Reaction 8
Recalculate results for given reaction and entity.
Parameters
string $entity_type: Voted entity type.
string $entity_id: Voted entity id.
string $type: Vote type.
File
- src/
VotingApiReactionManager.php, line 181
Class
- VotingApiReactionManager
- Manages reactions through Voting API entities.
Namespace
Drupal\votingapi_reactionCode
public function recalculateResults($entity_type, $entity_id, $type) {
$this->votingApiResults
->recalculateResults($entity_type, $entity_id, $type);
}