You are here

public function XmlSitemapEntitiesSettingsForm::__construct in XML sitemap 8

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

Constructs a XmlSitemapEntitiesSettingsForm object.

Parameters

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

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

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info.

\Drupal\Core\State\StateInterface $state: The object State.

Overrides ConfigFormBase::__construct

File

src/Form/XmlSitemapEntitiesSettingsForm.php, line 60

Class

XmlSitemapEntitiesSettingsForm
Configure what entities will be included in sitemap.

Namespace

Drupal\xmlsitemap\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, StateInterface $state) {
  parent::__construct($config_factory);
  $this->entityTypeManager = $entity_type_manager;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
  $this->state = $state;
}