You are here

public function SitemapBase::defaultConfiguration in Sitemap 2.0.x

Same name and namespace in other branches
  1. 8.2 src/SitemapBase.php \Drupal\sitemap\SitemapBase::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ConfigurableInterface::defaultConfiguration

1 call to SitemapBase::defaultConfiguration()
SitemapBase::__construct in src/SitemapBase.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

File

src/SitemapBase.php, line 143

Class

SitemapBase
Base class for Sitemap plugin implementations.

Namespace

Drupal\sitemap

Code

public function defaultConfiguration() {
  return [
    'provider' => $this->pluginDefinition['provider'],
    'enabled' => $this->pluginDefinition['enabled'],
    'weight' => isset($this->pluginDefinition['weight']) ? $this->pluginDefinition['weight'] : '',
    'settings' => isset($this->pluginDefinition['settings']) ? $this->pluginDefinition['settings'] : [],
  ];
}