public function SimplesitemapController::__construct in Simple XML sitemap 8.2
Same name and namespace in other branches
- 8.3 src/Controller/SimplesitemapController.php \Drupal\simple_sitemap\Controller\SimplesitemapController::__construct()
- 4.x src/Controller/SimpleSitemapController.php \Drupal\simple_sitemap\Controller\SimpleSitemapController::__construct()
SimplesitemapController constructor.
Parameters
\Drupal\simple_sitemap\Simplesitemap $generator:
\Drupal\Core\PageCache\ResponsePolicy\KillSwitch $cache_kill_switch:
File
- src/
Controller/ SimplesitemapController.php, line 34
Class
- SimplesitemapController
- Class SimplesitemapController @package Drupal\simple_sitemap\Controller
Namespace
Drupal\simple_sitemap\ControllerCode
public function __construct(Simplesitemap $generator, KillSwitch $cache_kill_switch) {
$this->generator = $generator;
$this->cacheKillSwitch = $cache_kill_switch;
}