You are here

protected function LikeDislikeController::like_dislike_status in Like/Dislike 8

Respond with the status, if user already liked/disliked.

Parameters

AjaxResponse $response:

$entity_id:

Return value

AjaxResponse

1 call to LikeDislikeController::like_dislike_status()
LikeDislikeController::handler in src/Controller/LikeDislikeController.php
Like or Dislike handler.

File

src/Controller/LikeDislikeController.php, line 193

Class

LikeDislikeController
Class LikeDislikeController.

Namespace

Drupal\like_dislike\Controller

Code

protected function like_dislike_status(AjaxResponse $response, $entity_id) {
  return $response
    ->addCommand(new HtmlCommand('#like_dislike_status-' . $entity_id, 'Already liked/disliked..!'));
}