function StringTextareaWidget::defaultSettings
Same name in other branches
- 9 core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextareaWidget.php \Drupal\Core\Field\Plugin\Field\FieldWidget\StringTextareaWidget::defaultSettings()
- 8.9.x core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextareaWidget.php \Drupal\Core\Field\Plugin\Field\FieldWidget\StringTextareaWidget::defaultSettings()
- 11.x core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextareaWidget.php \Drupal\Core\Field\Plugin\Field\FieldWidget\StringTextareaWidget::defaultSettings()
Overrides PluginSettingsBase::defaultSettings
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 24
Class
- StringTextareaWidget
- Plugin implementation of the 'string_textarea' widget.
Namespace
Drupal\Core\Field\Plugin\Field\FieldWidgetCode
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.