You are here

public function SettingsForm::__construct in Notify 8

Same name and namespace in other branches
  1. 2.0.x src/Form/SettingsForm.php \Drupal\notify\Form\SettingsForm::__construct()
  2. 1.0.x src/Form/SettingsForm.php \Drupal\notify\Form\SettingsForm::__construct()

Class constructor.

Parameters

ConfigFactoryInterface $config_factory: The config factory.

AccountProxyInterface $current_user: The current user.

MessengerInterface $messenger: The core messenger service.

Overrides ConfigFormBase::__construct

File

src/Form/SettingsForm.php, line 46

Class

SettingsForm
Defines a form that configures forms module settings.

Namespace

Drupal\notify\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, AccountProxyInterface $current_user, MessengerInterface $messenger) {
  parent::__construct($config_factory);
  $this->currentUser = $current_user;
  $this->messenger = $messenger;
}