public function Entity::getDislikesAmount in Like & Dislike 7
Parameters
type $uid:
type $ip:
Return value
type
File
- src/
Model/ Entity.php, line 50
Class
- Entity
- @file
Namespace
Drupal\like_and_dislike\ModelCode
public function getDislikesAmount($uid = NULL, $ip = NULL) {
return \Drupal\like_and_dislike\Services\VoteService::getEntityVoteAmount($this->entity_id, 'dislike', $this->entity_type, $uid, $ip);
}