You are here

public function GarbageCollector::__construct in Simple XML sitemap (Views integration) 8

GarbageCollector constructor.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\simple_sitemap_views\SimpleSitemapViews $simple_sitemap_views: Views sitemap data.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager.

Overrides PluginBase::__construct

File

src/Plugin/QueueWorker/GarbageCollector.php, line 56
Contains queue worker for garbage collection.

Class

GarbageCollector
Executes garbage collection in the simple_sitemap_views table.

Namespace

Drupal\simple_sitemap_views\Plugin\QueueWorker

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, SimpleSitemapViews $simple_sitemap_views, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->viewStorage = $entity_type_manager
    ->getStorage('view');
  $this->simpleSitemapViews = $simple_sitemap_views;
}