public function Simplesitemap::__construct in Simple XML sitemap 8.2
Same name and namespace in other branches
- 8.3 src/Simplesitemap.php \Drupal\simple_sitemap\Simplesitemap::__construct()
Simplesitemap constructor.
Parameters
\Drupal\simple_sitemap\SitemapGenerator $sitemapGenerator:
\Drupal\simple_sitemap\EntityHelper $entityHelper:
\Drupal\Core\Config\ConfigFactory $configFactory:
\Drupal\Core\Database\Connection $database:
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager:
\Drupal\Core\Path\PathValidator $pathValidator:
\Drupal\Core\Datetime\DateFormatter $dateFormatter:
\Drupal\Component\Datetime\Time $time:
\Drupal\simple_sitemap\Batch $batch:
\Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator\UrlGeneratorManager $urlGeneratorManager:
File
- src/
Simplesitemap.php, line 105
Class
- Simplesitemap
- Class Simplesitemap @package Drupal\simple_sitemap
Namespace
Drupal\simple_sitemapCode
public function __construct(SitemapGenerator $sitemapGenerator, EntityHelper $entityHelper, ConfigFactory $configFactory, Connection $database, EntityTypeManagerInterface $entityTypeManager, PathValidator $pathValidator, DateFormatter $dateFormatter, Time $time, Batch $batch, UrlGeneratorManager $urlGeneratorManager) {
$this->sitemapGenerator = $sitemapGenerator;
$this->entityHelper = $entityHelper;
$this->configFactory = $configFactory;
$this->db = $database;
$this->entityTypeManager = $entityTypeManager;
$this->pathValidator = $pathValidator;
$this->dateFormatter = $dateFormatter;
$this->time = $time;
$this->batch = $batch;
$this->urlGeneratorManager = $urlGeneratorManager;
}