You are here

public function StatusForm::__construct in Simple XML sitemap 4.x

SitemapsForm constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory:

SimplesitemapOld $generator:

\Drupal\simple_sitemap\Settings $settings:

\Drupal\simple_sitemap\Form\FormHelper $form_helper:

\Drupal\Core\Database\Connection $database:

\Drupal\Core\Datetime\DateFormatter $date_formatter:

\Drupal\simple_sitemap\Queue\QueueWorker $queue_worker:

Overrides SimpleSitemapFormBase::__construct

File

src/Form/StatusForm.php, line 45

Class

StatusForm
Class StatusForm

Namespace

Drupal\simple_sitemap\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, SimplesitemapOld $generator, Settings $settings, FormHelper $form_helper, Connection $database, DateFormatter $date_formatter, QueueWorker $queue_worker) {
  parent::__construct($config_factory, $generator, $settings, $form_helper);
  $this->db = $database;
  $this->dateFormatter = $date_formatter;
  $this->queueWorker = $queue_worker;
}