public function VoteManager::getVotesByCriteria in Fivestar 8
Get votes by criteria.
Parameters
array $criteria: Associative array of criteria. Keys are:
- entity_id: The entity id.
- entity_type: The entity type.
- type: Vote type.
- user_id: The user id.
- vote_source: The vote source.
Return value
array Which contain vote ids.
File
- src/VoteManager.php, line 111 
Class
- VoteManager
- Contains methods for managing votes.
Namespace
Drupal\fivestarCode
public function getVotesByCriteria(array $criteria) {
  if (empty($criteria)) {
    return [];
  }
  return $this->voteStorage
    ->loadByProperties($criteria);
}