You are here

public function SitemapSubmitter::__construct in Simple XML sitemap 8.3

Same name and namespace in other branches
  1. 4.x modules/simple_sitemap_engines/src/Plugin/QueueWorker/SitemapSubmitter.php \Drupal\simple_sitemap_engines\Plugin\QueueWorker\SitemapSubmitter::__construct()

SitemapSubmitter constructor.

Parameters

array $configuration: The config.

string $plugin_id: The plugin id.

array $plugin_definition: The plugin definition.

\Drupal\Core\Entity\EntityStorageInterface $engine_storage: The EntityStorageInterface.

\GuzzleHttp\ClientInterface $http_client: The client used to submit to engines.

\Drupal\simple_sitemap\Simplesitemap $generator: The generator service.

\Drupal\simple_sitemap\Logger $logger: Standard logger.

\Drupal\Core\State\StateInterface $state: Drupal state service for last submitted.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

Overrides PluginBase::__construct

File

modules/simple_sitemap_engines/src/Plugin/QueueWorker/SitemapSubmitter.php, line 93

Class

SitemapSubmitter
Process a queue of search engines to submit sitemaps.

Namespace

Drupal\simple_sitemap_engines\Plugin\QueueWorker

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, EntityStorageInterface $engine_storage, ClientInterface $http_client, Simplesitemap $generator, Logger $logger, StateInterface $state, TimeInterface $time) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->engineStorage = $engine_storage;
  $this->httpClient = $http_client;
  $this->generator = $generator;
  $this->logger = $logger;
  $this->state = $state;
  $this->time = $time;
}