You are here

public function SimpleSitemapViews::__construct in Simple XML sitemap 4.x

Same name and namespace in other branches
  1. 8.3 modules/simple_sitemap_views/src/SimpleSitemapViews.php \Drupal\simple_sitemap_views\SimpleSitemapViews::__construct()

SimpleSitemapViews constructor.

Parameters

\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.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

File

modules/simple_sitemap_views/src/SimpleSitemapViews.php, line 75

Class

SimpleSitemapViews
Class to manage sitemap data for views.

Namespace

Drupal\simple_sitemap_views

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory, QueueFactory $queue_factory, Connection $database) {
  $this->viewStorage = $entity_type_manager
    ->getStorage('view');
  $this->configFactory = $config_factory;
  $this->queueFactory = $queue_factory;
  $this->database = $database;
}