You are here

public function CaptchaQuestionsSettingsForm::__construct in Captcha Questions 8

CaptchaQuestionsSettingsForm constructor.

Parameters

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

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.

\Drupal\Core\Database\Connection $database: The database connection to be used.

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

Overrides ConfigFormBase::__construct

File

src/Form/CaptchaQuestionsSettingsForm.php, line 54

Class

CaptchaQuestionsSettingsForm
Displays the captcha_questions settings form.

Namespace

Drupal\captcha_questions\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, Connection $database, MessengerInterface $messenger) {
  parent::__construct($config_factory);
  $this->moduleHandler = $module_handler;
  $this->database = $database;
  $this->messenger = $messenger;
}