public static function BxsliderThs::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 Bxslider::defaultSettings
File
- src/
Plugin/ Field/ FieldFormatter/ BxsliderThs.php, line 24
Class
- BxsliderThs
- BxSlider thumbnail pager.
Namespace
Drupal\bxslider\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
$bxslider_settings = parent::defaultSettings();
$bxslider_settings['slider']['pager']['pager'] = FALSE;
return [
'thumbnail_slider' => [
'thumbnail_style' => 'thumbnail',
'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' => FALSE,
'pagerType' => 'full',
'pagerShortSeparator' => ' / ',
'pagerSelector' => '',
],
'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' => 4,
'maxSlides' => 4,
'moveSlides' => 1,
'slideWidth' => 0,
],
],
] + $bxslider_settings;
}