public function LikeDislikeController::__construct in Like/Dislike 8
Constructs an LinkClickCountController object.
Parameters
\Symfony\Component\HttpFoundation\RequestStack $request: The request stack.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Session\AccountInterface $account: The current user.
\Drupal\Core\Render\RendererInterface: The renderer.
File
- src/
Controller/ LikeDislikeController.php, line 64
Class
- LikeDislikeController
- Class LikeDislikeController.
Namespace
Drupal\like_dislike\ControllerCode
public function __construct(RequestStack $request, EntityTypeManagerInterface $entity_type_manager, AccountInterface $account, RendererInterface $renderer) {
$this->requestStack = $request;
$this->entityTypeManager = $entity_type_manager;
$this->currentUser = $account;
$this->renderer = $renderer;
}