public static function PlainStringFormatter::defaultSettings in String field formatter 2.0.x
Same name and namespace in other branches
- 8 src/Plugin/Field/FieldFormatter/PlainStringFormatter.php \Drupal\string_field_formatter\Plugin\Field\FieldFormatter\PlainStringFormatter::defaultSettings()
- 8.x src/Plugin/Field/FieldFormatter/PlainStringFormatter.php \Drupal\string_field_formatter\Plugin\Field\FieldFormatter\PlainStringFormatter::defaultSettings()
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides StringFormatter::defaultSettings
File
- src/
Plugin/ Field/ FieldFormatter/ PlainStringFormatter.php, line 38
Class
- PlainStringFormatter
- Plugin implementation of the 'plain_string_formatter' formatter.
Namespace
Drupal\string_field_formatter\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return parent::defaultSettings() + [
'wrap_tag' => static::$wrapTagEmptyValue,
'wrap_class' => '',
];
}