You are here

public function BeautytipsConfigForm::__construct in BeautyTips 8

Constructs a \Drupal\system\ConfigFormBase object.

Parameters

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

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

Overrides ConfigFormBase::__construct

File

src/Form/BeautytipsConfigForm.php, line 36

Class

BeautytipsConfigForm
Beautytips admin settings form.

Namespace

Drupal\beautytips\Form

Code

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