You are here

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

Same name and namespace in other branches
  1. 8.3 src/Plugin/simple_sitemap/SitemapGenerator/SitemapGeneratorBase.php \Drupal\simple_sitemap\Plugin\simple_sitemap\SitemapGenerator\SitemapGeneratorBase::__construct()

SitemapGeneratorBase constructor.

Parameters

array $configuration:

$plugin_id:

$plugin_definition:

\Drupal\Core\Extension\ModuleHandler $module_handler:

\Drupal\simple_sitemap\Plugin\simple_sitemap\SitemapGenerator\SitemapWriter $sitemap_writer:

\Drupal\simple_sitemap\Settings $settings:

Overrides PluginBase::__construct

File

src/Plugin/simple_sitemap/SitemapGenerator/SitemapGeneratorBase.php, line 55

Class

SitemapGeneratorBase
Class SitemapGeneratorBase

Namespace

Drupal\simple_sitemap\Plugin\simple_sitemap\SitemapGenerator

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ModuleHandler $module_handler, SitemapWriter $sitemap_writer, Settings $settings) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->moduleHandler = $module_handler;
  $this->writer = $sitemap_writer;
  $this->settings = $settings;
}