You are here

public function SinglePageSiteConfigForm::__construct in Single Page Site 2.0.x

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

SinglePageSiteConfigForm constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory to load/save config.

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

Overrides ConfigFormBase::__construct

File

src/Form/SinglePageSiteConfigForm.php, line 33

Class

SinglePageSiteConfigForm
Class SinglePageSiteConfigForm.

Namespace

Drupal\single_page_site\Form

Code

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