You are here

public function Entity::getLikesAmount in Like & Dislike 7

Parameters

type $uid:

type $ip:

Return value

type

File

src/Model/Entity.php, line 41

Class

Entity
@file

Namespace

Drupal\like_and_dislike\Model

Code

public function getLikesAmount($uid = NULL, $ip = NULL) {
  return \Drupal\like_and_dislike\Services\VoteService::getEntityVoteAmount($this->entity_id, 'like', $this->entity_type, $uid, $ip);
}