You are here

public static function PhotoswipeFieldFormatter::defaultSettings in PhotoSwipe 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/PhotoswipeFieldFormatter.php \Drupal\photoswipe\Plugin\Field\FieldFormatter\PhotoswipeFieldFormatter::defaultSettings()
  2. 3.x 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 26

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_caption' => '',
    'photoswipe_view_mode' => '',
  ] + parent::defaultSettings();
}