You are here

public function SitemapSettingsForm::__construct in Sitemap 8

Same name and namespace in other branches
  1. 8.2 src/Form/SitemapSettingsForm.php \Drupal\sitemap\Form\SitemapSettingsForm::__construct()
  2. 2.0.x src/Form/SitemapSettingsForm.php \Drupal\sitemap\Form\SitemapSettingsForm::__construct()

Constructs a SitemapSettingsForm object.

Parameters

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

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

Overrides ConfigFormBase::__construct

File

src/Form/SitemapSettingsForm.php, line 42

Class

SitemapSettingsForm
Provides a configuration form for sitemap.

Namespace

Drupal\sitemap\Form

Code

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