You are here

public function SimplesitemapEnginesForm::__construct in Simple XML sitemap 8.3

Same name and namespace in other branches
  1. 4.x modules/simple_sitemap_engines/src/Form/SimplesitemapEnginesForm.php \Drupal\simple_sitemap_engines\Form\SimplesitemapEnginesForm::__construct()

SimplesitemapEnginesForm constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

\Drupal\Core\Datetime\DateFormatter $date_formatter: The date formatter service.

\Drupal\simple_sitemap\SimplesitemapManager $sitemap_manager: The sitemap manager service.

Overrides ConfigFormBase::__construct

File

modules/simple_sitemap_engines/src/Form/SimplesitemapEnginesForm.php, line 52

Class

SimplesitemapEnginesForm
Form for managing search engine submission settings.

Namespace

Drupal\simple_sitemap_engines\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, DateFormatter $date_formatter, SimplesitemapManager $sitemap_manager) {
  parent::__construct($config_factory);
  $this->entityTypeManager = $entity_type_manager;
  $this->dateFormatter = $date_formatter;
  $this->sitemapManager = $sitemap_manager;
}