protected function SitemapBase::baseConfigurationDefaults in Sitemap 8.2
Returns generic default configuration for sitemap plugins.
Return value
array An associative array with the default configuration.
1 call to SitemapBase::baseConfigurationDefaults()
- SitemapBase::setConfiguration in src/
SitemapBase.php - Sets the configuration for this plugin instance.
File
- src/
SitemapBase.php, line 134
Class
- SitemapBase
- Base class for Sitemap plugin implementations.
Namespace
Drupal\sitemapCode
protected function baseConfigurationDefaults() {
return [
'id' => $this
->getPluginId(),
'provider' => $this->pluginDefinition['provider'],
'enabled' => $this->pluginDefinition['enabled'] ?? FALSE,
'weight' => $this->pluginDefinition['weight'] ?? 0,
'settings' => $this->pluginDefinition['settings'] ?? [],
];
}