You are here

public function FlagEvents::__construct in Message Subscribe 8

Construct the flag event subscriber.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

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

File

message_subscribe_email/src/EventSubscriber/FlagEvents.php, line 41

Class

FlagEvents
React to flag and unflag events.

Namespace

Drupal\message_subscribe_email\EventSubscriber

Code

public function __construct(ConfigFactoryInterface $config_factory, FlagServiceInterface $flag_service) {
  $this->configFactory = $config_factory;
  $this->flagService = $flag_service;
}