You are here

public function ActionLinkController::__construct in Flag Lists 8

Same name and namespace in other branches
  1. 4.0.x src/Controller/ActionLinkController.php \Drupal\flag_lists\Controller\ActionLinkController::__construct()

Constructor.

Parameters

\Drupal\flag\FlagServiceInterface $flag: The flag service.

\Drupal\flag_lists\FlagListsServiceInterface $flag_lists: The flag lists service.

\Drupal\Core\Render\RendererInterface $renderer: The Renderer service.

File

src/Controller/ActionLinkController.php, line 58

Class

ActionLinkController
Controller responses to flag and unflag action links.

Namespace

Drupal\flag_lists\Controller

Code

public function __construct(FlagServiceInterface $flag, FlagListsServiceInterface $flag_lists, RendererInterface $renderer) {
  $this->flagService = $flag;
  $this->flagListsService = $flag_lists;
  $this->renderer = $renderer;
}