protected function ViewsBootstrapDropdown::defineOptions in Views Bootstrap 8.3
Declare the options used to configure this style.
Based mostly on \Drupal\views\Plugin\views\style\HtmlList.
Overrides StylePluginBase::defineOptions
File
- src/
Plugin/ views/ style/ ViewsBootstrapDropdown.php, line 50
Class
- ViewsBootstrapDropdown
- Style plugin to render each item as a row in a Bootstrap Dropdown.
Namespace
Drupal\views_bootstrap\Plugin\views\styleCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['class'] = [
'default' => '',
];
$options['wrapper_class'] = [
'default' => '',
];
$options['button_text'] = [
'default' => 'Select',
];
$options['button_class'] = [
'default' => 'btn btn-default',
];
return $options;
}