protected function ViewsAccordion::defineOptions in Views Accordion 8
Same name and namespace in other branches
- 2.0.x src/Plugin/views/style/ViewsAccordion.php \Drupal\views_accordion\Plugin\views\style\ViewsAccordion::defineOptions()
Set default options.
Overrides StylePluginBase::defineOptions
File
- src/
Plugin/ views/ style/ ViewsAccordion.php, line 35
Class
- ViewsAccordion
- Style plugin to render each item in an ordered or unordered list.
Namespace
Drupal\views_accordion\Plugin\views\styleCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['use-grouping-header'] = [
'default' => 0,
];
$options['collapsible'] = [
'default' => 0,
];
$options['row-start-open'] = [
'default' => 0,
];
$options['animated'] = [
'default' => 'slide',
];
$options['animation_time'] = [
'default' => 300,
];
$options['heightStyle'] = [
'default' => 'auto',
];
$options['event'] = [
'default' => 'click',
];
$options['disableifone'] = [
'default' => 0,
];
$options['use_header_icons'] = [
'default' => TRUE,
];
$options['icon_header'] = [
'default' => 'ui-icon-triangle-1-e',
];
$options['icon_active_header'] = [
'default' => 'ui-icon-triangle-1-s',
];
return $options;
}