You are here

public static function FFTFormatter::defaultSettings in Field Formatter Template 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/FFTFormatter.php \Drupal\fft\Plugin\Field\FieldFormatter\FFTFormatter::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/FFTFormatter.php, line 41

Class

FFTFormatter
Plugin implementation of the 'fft_formatter' formatter.

Namespace

Drupal\fft\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'template' => '',
    'image_style_1' => '',
    'image_style_2' => '',
    'settings' => '',
    'reset' => 1,
    'isNew' => 1,
  ] + parent::defaultSettings();
}