You are here

protected function ViewsBootstrapThumbnail::defineOptions in Views Bootstrap 8.3

Definition.

Overrides StylePluginBase::defineOptions

File

src/Plugin/views/style/ViewsBootstrapThumbnail.php, line 121

Class

ViewsBootstrapThumbnail
Style plugin to render each item as a row in a Bootstrap thumbnail.

Namespace

Drupal\views_bootstrap\Plugin\views\style

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['alignment'] = [
    'default' => 'horizontal',
  ];
  $options['columns'] = [
    'default' => '12',
  ];
  $options['col_xs'] = [
    'default' => 'col-xs-12',
  ];
  $options['col_sm'] = [
    'default' => 'col-sm-6',
  ];
  $options['col_md'] = [
    'default' => 'col-md-4',
  ];
  $options['col_lg'] = [
    'default' => 'col-lg-3',
  ];
  $options['automatic_width'] = [
    'default' => FALSE,
  ];
  $options['col_class_custom'] = [
    'default' => '',
  ];
  $options['col_class_default'] = [
    'default' => TRUE,
  ];
  $options['row_class_custom'] = [
    'default' => '',
  ];
  $options['row_class_default'] = [
    'default' => TRUE,
  ];
  return $options;
}