You are here

public function MessageBannerSettingsForm::__construct in Message Banner 8

Constructs a message banner settings form.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

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

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

Overrides ConfigFormBase::__construct

File

src/Form/MessageBannerSettingsForm.php, line 57

Class

MessageBannerSettingsForm
The message banner settings form.

Namespace

Drupal\message_banner\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, StateInterface $state) {
  parent::__construct($config_factory);
  $this->moduleHandler = $module_handler;
  $this->state = $state;
}