You are here

public static function EditorNoteWidget::defaultSettings in Editor Notes 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/FieldWidget/EditorNoteWidget.php, line 77

Class

EditorNoteWidget
Editor note widget.

Namespace

Drupal\editor_note\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  $formats = filter_formats();
  $format = reset($formats);
  return [
    'formatted' => FALSE,
    'default_format' => $format
      ->id(),
    'limit' => 10,
  ] + parent::defaultSettings();
}