You are here

public static function jCarouselFieldFormatter::defaultSettings in jQuery carousel 8

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldFormatter/jCarouselFieldFormatter.php, line 85

Class

jCarouselFieldFormatter
Plugin annotation @FieldFormatter( id = "jquery_carousel_images", label = @Translation("jQuery Carousel"), field_types = { "image" } )

Namespace

Drupal\jquery_carousel\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'theme' => 'default',
    'selector' => 'rs-carousel',
    'style_name' => 'thumbnail',
    'itemsPerTransition' => 'auto',
    'orientation' => 'horizontal',
    'loop' => FALSE,
    'whitespace' => FALSE,
    'nextPrevActions' => TRUE,
    'pagination' => FALSE,
    'speed' => 'normal',
    'easing' => 'swing',
    'autoScroll' => TRUE,
    'interval' => 8000,
    'continuous' => FALSE,
    'touch' => TRUE,
  ] + parent::defaultSettings();
}