protected function DrupalSlider::defineOptions in Drupal Slider 8
Same name and namespace in other branches
- 8.2 src/Plugin/views/style/DrupalSlider.php \Drupal\drupal_slider\Plugin\views\style\DrupalSlider::defineOptions()
Function defineOptions.
Overrides StylePluginBase::defineOptions
File
- src/
Plugin/ views/ style/ DrupalSlider.php, line 41
Class
- DrupalSlider
- Views_style_plugins for drupal_slider.
Namespace
Drupal\drupal_slider\Plugin\views\styleCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['general'] = [
'contains' => [],
];
$options['general']['contains']['width'] = [
'default' => 950,
];
$options['general']['contains']['height'] = [
'default' => 300,
];
$options['general']['contains']['arrows'] = [
'default' => 1,
];
$options['general']['contains']['buttons'] = [
'default' => 1,
];
$options['general']['contains']['autoplay'] = [
'default' => 1,
];
$options['general']['contains']['autoplayDelay'] = [
'default' => 5000,
];
$options['general']['contains']['shuffle'] = [
'default' => 0,
];
$options['general']['contains']['fade'] = [
'default' => 0,
];
$options['general']['contains']['carousel'] = [
'default' => 0,
];
$options['general']['contains']['full_screen'] = [
'default' => 0,
];
$options['general']['contains']['loop'] = [
'default' => 1,
];
$options['general']['contains']['orientation'] = [
'default' => 0,
];
$options['general']['contains']['thumbnails_position'] = [
'default' => 'bottom',
];
return $options;
}