You are here

public function XmlSitemapController::__construct in XML sitemap 8

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

Constructs a new XmlSitemapController object.

Parameters

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

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

File

src/Controller/XmlSitemapController.php, line 46

Class

XmlSitemapController
Class for Xml Sitemap Controller.

Namespace

Drupal\xmlsitemap\Controller

Code

public function __construct(StateInterface $state, ConfigFactoryInterface $config_factory) {
  $this->state = $state;
  $this->configFactory = $config_factory;
}