public function XmlSitemapSettingsForm::__construct in XML sitemap 8
Same name and namespace in other branches
- 2.x src/Form/XmlSitemapSettingsForm.php \Drupal\xmlsitemap\Form\XmlSitemapSettingsForm::__construct()
Constructs a new XmlSitemapSettingsForm object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
\Drupal\Core\State\StateInterface $state: The state service.
\Drupal\Core\Datetime\DateFormatterInterface $date: The date formatter service.
\Drupal\xmlsitemap\XmlSitemapLinkStorageInterface $link_storage: The xmlsitemap link storage service.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
Overrides ConfigFormBase::__construct
File
- src/
Form/ XmlSitemapSettingsForm.php, line 64
Class
- XmlSitemapSettingsForm
- Configure xmlsitemap settings for this site.
Namespace
Drupal\xmlsitemap\FormCode
public function __construct(ConfigFactoryInterface $config_factory, StateInterface $state, DateFormatterInterface $date, XmlSitemapLinkStorageInterface $link_storage, ModuleHandlerInterface $module_handler) {
parent::__construct($config_factory);
$this->state = $state;
$this->date = $date;
$this->linkStorage = $link_storage;
$this->moduleHandler = $module_handler;
}