You are here

public function XmlSitemapEnginesSettingsForm::__construct in XML sitemap 8

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

Constructs a new XmlSitemapCustomAddForm object.

Parameters

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

\Drupal\Core\Datetime\DateFormatterInterface $date: The date service.

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

Overrides ConfigFormBase::__construct

File

xmlsitemap_engines/src/Form/XmlSitemapEnginesSettingsForm.php, line 43

Class

XmlSitemapEnginesSettingsForm
Configure xmlsitemap engines settings for this site.

Namespace

Drupal\xmlsitemap_engines\Form

Code

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