You are here

public function FlagEvents::__construct in Flag 8.4

Constructor.

Parameters

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

\Drupal\Core\State\StateInterface $state: The state service.

File

tests/modules/flag_event_test/src/EventSubscriber/FlagEvents.php, line 39

Class

FlagEvents
Test flag events subscriber.

Namespace

Drupal\flag_event_test\EventSubscriber

Code

public function __construct(FlagServiceInterface $flag_service, StateInterface $state) {
  $this->flagService = $flag_service;
  $this->state = $state;
}