function ResponsiveGrid::defineOptions in Views Responsive Grid 8
Set default options
Overrides StylePluginBase::defineOptions
File
- lib/
Drupal/ views_responsive_grid/ Plugin/ views/ style/ ResponsiveGrid.php, line 48 - Definition of Drupal\views_responsive_grid\Plugin\views\style\ResponsiveGrid.
Class
- ResponsiveGrid
- Style plugin to render each item in a responsive grid "cell".
Namespace
Drupal\views_responsive_grid\Plugin\views\styleCode
function defineOptions() {
$options = parent::defineOptions();
$options['columns'] = array(
'default' => '4',
);
$options['automatic_width'] = array(
'default' => TRUE,
'bool' => TRUE,
);
$options['alignment'] = array(
'default' => 'horizontal',
);
$options['col_class'] = array(
'default' => '',
);
$options['default_col_class'] = array(
'default' => TRUE,
'bool' => TRUE,
);
$options['col_class_special'] = array(
'default' => TRUE,
'bool' => TRUE,
);
return $options;
}