You are here

public function DefaultForm::__construct in Notify 1.0.x

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

Class constructor.

Parameters

ConfigFactoryInterface $config_factory: The config factory.

MessengerInterface $messenger: The core messenger service.

\Drupal\Core\Extension\ModuleHandler $module_handler:

Overrides ConfigFormBase::__construct

File

src/Form/DefaultForm.php, line 42

Class

DefaultForm
Defines a form that configures forms module settings.

Namespace

Drupal\notify\Form

Code

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