You are here

public static function TwigWidget::defaultSettings in Twig 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/TwigWidget.php, line 29

Class

TwigWidget
Defines the Twig field widget.

Namespace

Drupal\twig_field\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  $settings = [
    'rows' => '5',
    'placeholder' => '',
    'mode' => 'html_twig',
  ];
  return $settings + self::getDefaultCodeMirrorSettings();
}