You are here

public function SitemapGenerator::__construct in Simple XML sitemap 8.2

SitemapGenerator constructor.

Parameters

\Drupal\simple_sitemap\EntityHelper $entityHelper:

\Drupal\Core\Database\Connection $database:

\Drupal\Core\Extension\ModuleHandler $module_handler:

\Drupal\Core\Language\LanguageManagerInterface $language_manager:

\Drupal\Component\Datetime\Time $time:

\Drupal\simple_sitemap\SitemapWriter $sitemapWriter:

File

src/SitemapGenerator.php, line 89

Class

SitemapGenerator
Class SitemapGenerator @package Drupal\simple_sitemap

Namespace

Drupal\simple_sitemap

Code

public function __construct(EntityHelper $entityHelper, Connection $database, ModuleHandler $module_handler, LanguageManagerInterface $language_manager, Time $time, SitemapWriter $sitemapWriter) {
  $this->entityHelper = $entityHelper;
  $this->db = $database;
  $this->moduleHandler = $module_handler;
  $this->languageManager = $language_manager;
  $this->time = $time;
  $this->writer = $sitemapWriter;
}