You are here

public static function TextHeaderFormatter::defaultSettings in Header formatter 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/TextHeaderFormatter.php, line 26

Class

TextHeaderFormatter
Plugin implementation of the 'text_header' formatter.

Namespace

Drupal\header_formatter\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return parent::defaultSettings() + [
    'level' => 2,
  ];
}