public static function TextFormatter::defaultSettings in Heading 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/ TextFormatter.php, line 26
Class
- TextFormatter
- Plugin to format string & text fields as a heading.
Namespace
Drupal\heading\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'size' => 'h2',
] + parent::defaultSettings();
}