You are here

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

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

Constructs the plugin.

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\Form\FormHelper $form_helper: Simple XML Sitemap form helper.

Overrides PluginBase::__construct

File

modules/simple_sitemap_views/src/Plugin/views/display_extender/SimpleSitemapDisplayExtender.php, line 54

Class

SimpleSitemapDisplayExtender
Simple XML Sitemap display extender plugin.

Namespace

Drupal\simple_sitemap_views\Plugin\views\display_extender

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, FormHelper $form_helper) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->formHelper = $form_helper;
  $this->variants = SimpleSitemap::loadMultiple();
}