function StringTextareaWidget::defaultSettings

Same name in other branches
  1. 9 core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextareaWidget.php \Drupal\Core\Field\Plugin\Field\FieldWidget\StringTextareaWidget::defaultSettings()
  2. 10 core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextareaWidget.php \Drupal\Core\Field\Plugin\Field\FieldWidget\StringTextareaWidget::defaultSettings()
  3. 11.x core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextareaWidget.php \Drupal\Core\Field\Plugin\Field\FieldWidget\StringTextareaWidget::defaultSettings()

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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.