You are here

protected function ViewsBootstrapAccordion::defineOptions in Views Bootstrap 8.3

Same name and namespace in other branches
  1. 8.4 src/Plugin/views/style/ViewsBootstrapAccordion.php \Drupal\views_bootstrap\Plugin\views\style\ViewsBootstrapAccordion::defineOptions()

Definition.

Overrides StylePluginBase::defineOptions

File

src/Plugin/views/style/ViewsBootstrapAccordion.php, line 40

Class

ViewsBootstrapAccordion
Style plugin to render each item as a row in a Bootstrap Accordion.

Namespace

Drupal\views_bootstrap\Plugin\views\style

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['panel_title_field'] = [
    'default' => NULL,
  ];
  $options['behavior'] = [
    'default' => 'closed',
  ];
  $options['label_field'] = [
    'default' => NULL,
  ];
  return $options;
}