protected function Grid::defineOptions in Views (for Drupal 7) 8.3
Set default options
Overrides StylePluginBase::defineOptions
File
- lib/
Drupal/ views/ Plugin/ views/ style/ Grid.php, line 45 - Definition of Drupal\views\Plugin\views\style\Grid.
Class
- Grid
- Style plugin to render each item in a grid cell.
Namespace
Drupal\views\Plugin\views\styleCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['columns'] = array(
'default' => '4',
);
$options['alignment'] = array(
'default' => 'horizontal',
);
$options['fill_single_line'] = array(
'default' => TRUE,
'bool' => TRUE,
);
$options['summary'] = array(
'default' => '',
);
return $options;
}