public function SimpleSitemapViews::__construct in Simple XML sitemap 8.3
Same name and namespace in other branches
- 4.x modules/simple_sitemap_views/src/SimpleSitemapViews.php \Drupal\simple_sitemap_views\SimpleSitemapViews::__construct()
SimpleSitemapViews constructor.
Parameters
\Drupal\simple_sitemap\SimplesitemapManager $sitemap_manager: Simple XML Sitemap manager.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\Core\Queue\QueueFactory $queue_factory: The queue factory.
\Drupal\Core\Database\Connection $database: The current active database's master connection.
File
- modules/
simple_sitemap_views/ src/ SimpleSitemapViews.php, line 81
Class
- SimpleSitemapViews
- Class to manage sitemap data for views.
Namespace
Drupal\simple_sitemap_viewsCode
public function __construct(SimplesitemapManager $sitemap_manager, EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory, QueueFactory $queue_factory, Connection $database) {
$this->sitemapManager = $sitemap_manager;
$this->viewStorage = $entity_type_manager
->getStorage('view');
$this->configFactory = $config_factory;
$this->queueFactory = $queue_factory;
$this->database = $database;
}