public static function CodeMirrorEditorWidget::defaultSettings in The CodeMirror Editor 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/ CodeMirrorEditorWidget.php, line 29
Class
- CodeMirrorEditorWidget
- Defines the 'codemirror_editor' field widget.
Namespace
Drupal\codemirror_editor\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
$settings = [
'rows' => '5',
'placeholder' => '',
'mode' => 'text/html',
];
return $settings + self::getDefaultCodeMirrorSettings();
}