You are here

public function ActionLinkNoJsController::__construct in Flag Lists 4.0.x

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

Constructor.

Parameters

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

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

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

File

src/Controller/ActionLinkNoJsController.php, line 56

Class

ActionLinkNoJsController
Returns nojs responses to flag and unflag action links.

Namespace

Drupal\flag_lists\Controller

Code

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