You are here

public static function StringTextareaWidget::defaultSettings in Zircon Profile 8.0

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

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 30
Contains \Drupal\Core\Field\Plugin\Field\FieldWidget\StringTextareaWidget.

Class

StringTextareaWidget
Plugin implementation of the 'string_textarea' widget.

Namespace

Drupal\Core\Field\Plugin\Field\FieldWidget

Code

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