You are here

public static function StringTextareaWidget::defaultSettings in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextareaWidget.php \Drupal\Core\Field\Plugin\Field\FieldWidget\StringTextareaWidget::defaultSettings()
  2. 9 core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextareaWidget.php \Drupal\Core\Field\Plugin\Field\FieldWidget\StringTextareaWidget::defaultSettings()

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides PluginSettingsBase::defaultSettings

1 call to StringTextareaWidget::defaultSettings()
TextareaWithSummaryWidget::defaultSettings in core/modules/text/src/Plugin/Field/FieldWidget/TextareaWithSummaryWidget.php
Defines the default settings for this plugin.
1 method overrides StringTextareaWidget::defaultSettings()
TextareaWithSummaryWidget::defaultSettings in core/modules/text/src/Plugin/Field/FieldWidget/TextareaWithSummaryWidget.php
Defines the default settings for this plugin.

File

core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextareaWidget.php, line 25

Class

StringTextareaWidget
Plugin implementation of the 'string_textarea' widget.

Namespace

Drupal\Core\Field\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'rows' => '5',
    'placeholder' => '',
  ] + parent::defaultSettings();
}