You are here

public static function KeyValueFormatter::defaultSettings in Key value field 8

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/KeyValueFormatter.php, line 29

Class

KeyValueFormatter
Plugin implementation of the 'key_value' formatter.

Namespace

Drupal\key_value_field\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $settings = parent::defaultSettings();
  $settings['value_only'] = FALSE;
  return $settings;
}