You are here

public static function JsonEditorWidget::defaultSettings in JSON 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/FieldWidget/JsonEditorWidget.php, line 28

Class

JsonEditorWidget
Plugin implementation of the 'json_editor' widget.

Namespace

Drupal\json_field\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'mode' => 'code',
    'modes' => [
      'tree',
      'code',
    ],
    'schema' => '',
    'schema_validate' => FALSE,
  ] + parent::defaultSettings();
}