You are here

public static function ImageLightBoxFormatter::defaultSettings in ImageLightbox 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Field/FieldFormatter/ImagelightboxFormatter.php \Drupal\imagelightbox\Plugin\Field\FieldFormatter\ImageLightBoxFormatter::defaultSettings()
  2. 2.0.x src/Plugin/Field/FieldFormatter/ImagelightboxFormatter.php \Drupal\imagelightbox\Plugin\Field\FieldFormatter\ImageLightBoxFormatter::defaultSettings()

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/ImagelightboxFormatter.php, line 27

Class

ImageLightBoxFormatter
Plugin implementation of the 'imagelightbox' formatter.

Namespace

Drupal\imagelightbox\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'image_style' => 'thumbnail',
    'imagelightbox_image_style' => 'large',
    'label' => 'hidden',
    'captions_source' => 'image_title',
    'buttons' => TRUE,
    'inline' => TRUE,
  ];
}