protected function GridResponsive::defineOptions in Drupal 10
Information about options for all kinds of purposes will be held here.
'option_name' => array(
- 'default' => default value,
- 'contains' => (optional) array of items this contains, with its own
defaults, etc. If contains is set, the default will be ignored and
assumed to be array().
),
Return value
array Returns the options of this handler/plugin.
Overrides StylePluginBase::defineOptions
File
- core/
modules/ views/ src/ Plugin/ views/ style/ GridResponsive.php, line 30
Class
- GridResponsive
- Style plugin to render each item in a responsive grid cell.
Namespace
Drupal\views\Plugin\views\styleCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['columns'] = [
'default' => '4',
];
$options['cell_min_width'] = [
'default' => '100',
];
$options['grid_gutter'] = [
'default' => '10',
];
$options['alignment'] = [
'default' => 'horizontal',
];
return $options;
}