protected function FlickityViewsStyle::defineOptions in Flickity Carousel 8
Same name and namespace in other branches
- 8.2 modules/views/src/Plugin/views/style/FlickityViewsStyle.php \Drupal\flickity_views\Plugin\views\style\FlickityViewsStyle::defineOptions()
- 3.0.x modules/views/src/Plugin/views/style/FlickityViewsStyle.php \Drupal\flickity_views\Plugin\views\style\FlickityViewsStyle::defineOptions()
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
- modules/
views/ src/ Plugin/ views/ style/ FlickityViewsStyle.php, line 60 - FlickityViewsStyle.php
Class
- FlickityViewsStyle
- Defines a style plugin that renders a Flickity carousel.
Namespace
Drupal\flickity_views\Plugin\views\styleCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['settings'] = array(
'default' => 'default_group',
);
return $options;
}