You are here

public static function BaguetteboxFormatter::defaultSettings in baguetteBox.js 8

Defines the default settings for this plugin.

Return value

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

Overrides ImageFormatter::defaultSettings

File

src/Plugin/Field/FieldFormatter/BaguetteboxFormatter.php, line 25

Class

BaguetteboxFormatter
Plugin implementation of the 'baguettebox' formatter.

Namespace

Drupal\baguettebox\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'image_style' => '',
    'baguette_image_style' => '',
    'baguette_image_style_responsive' => [
      [
        'width' => NULL,
        'image_style' => NULL,
      ],
      [
        'width' => NULL,
        'image_style' => NULL,
      ],
      [
        'width' => NULL,
        'image_style' => NULL,
      ],
      [
        'width' => NULL,
        'image_style' => NULL,
      ],
      [
        'width' => NULL,
        'image_style' => NULL,
      ],
    ],
    'animation' => 'slideIn',
    'captions_source' => 'image_alt',
    'buttons' => TRUE,
    'fullscreen' => FALSE,
    'hide_scrollbars' => FALSE,
    'inline' => FALSE,
  ];
}