public static function PhotoswipeFieldFormatter::defaultSettings in PhotoSwipe 8.2
Same name and namespace in other branches
- 8 src/Plugin/Field/FieldFormatter/PhotoswipeFieldFormatter.php \Drupal\photoswipe\Plugin\Field\FieldFormatter\PhotoswipeFieldFormatter::defaultSettings()
- 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 28
Class
- PhotoswipeFieldFormatter
- Plugin implementation of the 'photoswipe_field_formatter' formatter.
Namespace
Drupal\photoswipe\Plugin\Field\FieldFormatterCode
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();
}