You are here

public static function TextareaWithSummaryWidget::defaultSettings in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/text/src/Plugin/Field/FieldWidget/TextareaWithSummaryWidget.php \Drupal\text\Plugin\Field\FieldWidget\TextareaWithSummaryWidget::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides StringTextareaWidget::defaultSettings

File

core/modules/text/src/Plugin/Field/FieldWidget/TextareaWithSummaryWidget.php, line 30
Contains \Drupal\text\Plugin\Field\FieldWidget\TextareaWithSummaryWidget.

Class

TextareaWithSummaryWidget
Plugin implementation of the 'text_textarea_with_summary' widget.

Namespace

Drupal\text\Plugin\Field\FieldWidget

Code

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