You are here

public static function PhotoswipeFieldFormatter::defaultSettings in PhotoSwipe 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/PhotoswipeFieldFormatter.php \Drupal\photoswipe\Plugin\Field\FieldFormatter\PhotoswipeFieldFormatter::defaultSettings()
  2. 8 src/Plugin/Field/FieldFormatter/PhotoswipeFieldFormatter.php \Drupal\photoswipe\Plugin\Field\FieldFormatter\PhotoswipeFieldFormatter::defaultSettings()

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/PhotoswipeFieldFormatter.php, line 69

Class

PhotoswipeFieldFormatter
Plugin implementation of the 'photoswipe_field_formatter' formatter.

Namespace

Drupal\photoswipe\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'photoswipe_node_style_first' => '',
    'photoswipe_node_style' => '',
    'photoswipe_image_style' => '',
    'photoswipe_reference_image_field' => '',
    'photoswipe_caption' => '',
    'photoswipe_caption_custom' => '',
    'photoswipe_view_mode' => '',
  ] + parent::defaultSettings();
}