protected function PhotoGrid::defineOptions in Views Photo Grid 8
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
- src/
Plugin/ views/ style/ PhotoGrid.php, line 43 - Contains \Drupal\views_photo_grid\Plugin\views\style\PhotoGrid.
Class
- PhotoGrid
- Style plugin to render the photo grid.
Namespace
Drupal\views_photo_grid\Plugin\views\styleCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['grid_padding'] = array(
'default' => 1,
);
return $options;
}