public function GarbageCollector::__construct in Simple XML sitemap 8.3
Same name and namespace in other branches
- 4.x modules/simple_sitemap_views/src/Plugin/QueueWorker/GarbageCollector.php \Drupal\simple_sitemap_views\Plugin\QueueWorker\GarbageCollector::__construct()
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\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager.
\Drupal\simple_sitemap_views\SimpleSitemapViews $sitemap_views: Views sitemap data.
Overrides PluginBase::__construct
File
- modules/
simple_sitemap_views/ src/ Plugin/ QueueWorker/ GarbageCollector.php, line 51
Class
- GarbageCollector
- Executes garbage collection in the simple_sitemap_views table.
Namespace
Drupal\simple_sitemap_views\Plugin\QueueWorkerCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, SimpleSitemapViews $sitemap_views) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->viewStorage = $entity_type_manager
->getStorage('view');
$this->sitemapViews = $sitemap_views;
}