public static function Bxslider::defaultSettings in BxSlider 8
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides PluginSettingsBase::defaultSettings
1 call to Bxslider::defaultSettings()
- BxsliderThs::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ BxsliderThs.php - Defines the default settings for this plugin.
1 method overrides Bxslider::defaultSettings()
- BxsliderThs::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ BxsliderThs.php - Defines the default settings for this plugin.
File
- src/
Plugin/ Field/ FieldFormatter/ Bxslider.php, line 83
Class
- Bxslider
- BxSlider.
Namespace
Drupal\bxslider\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'slider' => [
'image_style' => 'large',
'general' => [
'mode' => 'horizontal',
'speed' => 500,
'slideMargin' => 0,
'startSlide' => 0,
'randomStart' => FALSE,
'infiniteLoop' => FALSE,
'hideControlOnEnd' => TRUE,
'easing' => '',
'captions' => FALSE,
'ticker' => FALSE,
'tickerHover' => FALSE,
'adaptiveHeight' => FALSE,
'adaptiveHeightSpeed' => 500,
'video' => FALSE,
'responsive' => TRUE,
'useCSS' => TRUE,
'preloadImages' => 'visible',
'touchEnabled' => TRUE,
'swipeThreshold' => 50,
'oneToOneTouch' => TRUE,
'preventDefaultSwipeX' => TRUE,
'preventDefaultSwipeY' => FALSE,
'wrapperClass' => 'bx-wrapper',
],
'pager' => [
'pager' => TRUE,
'pagerType' => 'full',
'pagerShortSeparator' => ' / ',
'pagerSelector' => '',
'pagerCustom_type' => 'none',
'pagerCustom_image_style' => 'thumbnail',
],
'controls' => [
'controls' => TRUE,
'nextText' => 'Next',
'prevText' => 'Prev',
'nextSelector' => '',
'prevSelector' => '',
'autoControls' => FALSE,
'startText' => 'Start',
'stopText' => 'Stop',
'autoControlsCombine' => FALSE,
'autoControlsSelector' => '',
],
'auto' => [
'auto' => FALSE,
'pause' => 4000,
'autoStart' => TRUE,
'autoDirection' => 'next',
'autoHover' => FALSE,
'autoDelay' => 0,
],
'carousel' => [
'minSlides' => 1,
'maxSlides' => 1,
'moveSlides' => 0,
'slideWidth' => 0,
],
],
'colorbox' => [
'enable' => FALSE,
'image_style' => 'large',
'colorbox_gallery' => 'none',
'colorbox_gallery_custom' => '',
'colorbox_caption' => 'none',
'colorbox_caption_custom' => '',
],
] + parent::defaultSettings();
}