protected function SimpleSitemapDisplayExtender::defineOptions in Simple XML sitemap (Views integration) 8
Information about options for all kinds of purposes will be held here.
'option_name' => array(
- 'default' => default value,
- 'contains' => (optional) array of items this contains, with its own
defaults, etc. If contains is set, the default will be ignored and
assumed to be array().
),
Return value
array Returns the options of this handler/plugin.
Overrides PluginBase::defineOptions
File
- src/
Plugin/ views/ display_extender/ SimpleSitemapDisplayExtender.php, line 81 - Contains Simple XML Sitemap display extender.
Class
- SimpleSitemapDisplayExtender
- Simple XML Sitemap display extender plugin.
Namespace
Drupal\simple_sitemap_views\Plugin\views\display_extenderCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['index'] = [
'default' => 0,
];
$options['priority'] = [
'default' => 0.5,
];
$options['changefreq'] = [
'default' => '',
];
$options['arguments'] = [
'default' => [],
];
$options['max_links'] = [
'default' => 100,
];
return $options;
}