protected function ExposedGroups::defineOptions in Views exposed groups 3.0.x
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 ExposedFormPluginBase::defineOptions
File
- src/
Plugin/ views/ exposed_form/ ExposedGroups.php, line 25
Class
- ExposedGroups
- Provides an views exposed form plugin that groups filters.
Namespace
Drupal\views_exposed_groups\Plugin\views\exposed_formCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['exposed_groups'] = [
'default' => [
[
'name' => '_none',
'label' => 'Not grouped',
'weight' => 0,
'filters' => [],
],
],
];
$options['exposed_groups_format'] = [
'default' => 'vertical_tabs',
];
$options['exposed_groups_vertical_tabs_summary'] = [
'default' => 0,
];
return $options;
}