protected function ViewsBootstrapGrid::defineOptions in Views Bootstrap 8.4
Same name and namespace in other branches
- 8.3 src/Plugin/views/style/ViewsBootstrapGrid.php \Drupal\views_bootstrap\Plugin\views\style\ViewsBootstrapGrid::defineOptions()
Definition.
Overrides StylePluginBase::defineOptions
File
- src/Plugin/ views/ style/ ViewsBootstrapGrid.php, line 41 
Class
- ViewsBootstrapGrid
- Style plugin to render each item in an ordered or unordered list.
Namespace
Drupal\views_bootstrap\Plugin\views\styleCode
protected function defineOptions() {
  $options = parent::defineOptions();
  foreach (ViewsBootstrap::getBreakpoints() as $breakpoint) {
    $breakpoint_option = "col_{$breakpoint}";
    $options[$breakpoint_option] = [
      'default' => 'none',
    ];
  }
  $options['col_class_custom'] = [
    'default' => '',
  ];
  $options['col_class_default'] = [
    'default' => TRUE,
  ];
  $options['row_class_custom'] = [
    'default' => '',
  ];
  $options['row_class_default'] = [
    'default' => TRUE,
  ];
  $options['default'] = [
    'default' => '',
  ];
  $options['info'] = [
    'default' => [],
  ];
  $options['override'] = [
    'default' => TRUE,
  ];
  $options['sticky'] = [
    'default' => FALSE,
  ];
  $options['order'] = [
    'default' => 'asc',
  ];
  $options['caption'] = [
    'default' => '',
  ];
  $options['summary'] = [
    'default' => '',
  ];
  $options['description'] = [
    'default' => '',
  ];
  return $options;
}