You are here

public function SitemapSettingsForm::__construct in Sitemap 2.0.x

Same name and namespace in other branches
  1. 8.2 src/Form/SitemapSettingsForm.php \Drupal\sitemap\Form\SitemapSettingsForm::__construct()
  2. 8 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\sitemap\SitemapManager $sitemap_manager: The Sitemap plugin manager.

Overrides ConfigFormBase::__construct

File

src/Form/SitemapSettingsForm.php, line 40

Class

SitemapSettingsForm
Provides a configuration form for sitemap.

Namespace

Drupal\sitemap\Form

Code

public function __construct(ConfigFactory $config_factory, SitemapManager $sitemap_manager) {
  parent::__construct($config_factory);
  $this->sitemapManager = $sitemap_manager;
}