You are here

public static function ImagefieldSlideshowFieldFormatter::defaultSettings in Imagefield Slideshow 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/ImagefieldSlideshowFieldFormatter.php, line 105

Class

ImagefieldSlideshowFieldFormatter
Plugin implementation of 'imagefield_slideshow_field_formatter' formatter.

Namespace

Drupal\imagefield_slideshow\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    // Implement default settings.
    'imagefield_slideshow_style' => 'large',
    'imagefield_slideshow_style_effects' => 'fade',
    'imagefield_slideshow_style_pause' => 'false',
    'imagefield_slideshow_prev_next' => 'true',
    'imagefield_slideshow_transition_speed' => 100,
    'imagefield_slideshow_timeout' => 100,
    'imagefield_slideshow_pager' => TRUE,
  ] + parent::defaultSettings();
}