You are here

public function SimplesitemapSitemapsForm::__construct in Simple XML sitemap 8.3

SimplesitemapSitemapsForm constructor.

Parameters

\Drupal\simple_sitemap\Simplesitemap $generator:

\Drupal\simple_sitemap\Form\FormHelper $form_helper:

\Drupal\Core\Database\Connection $database:

\Drupal\Core\Datetime\DateFormatter $date_formatter:

Overrides SimplesitemapFormBase::__construct

File

src/Form/SimplesitemapSitemapsForm.php, line 34

Class

SimplesitemapSitemapsForm
Class SimplesitemapSitemapsForm @package Drupal\simple_sitemap\Form

Namespace

Drupal\simple_sitemap\Form

Code

public function __construct(Simplesitemap $generator, FormHelper $form_helper, Connection $database, DateFormatter $date_formatter) {
  parent::__construct($generator, $form_helper);
  $this->db = $database;
  $this->dateFormatter = $date_formatter;
}