function TextareaWidget::settingsForm

Same name in other branches
  1. 9 core/modules/text/src/Plugin/Field/FieldWidget/TextareaWidget.php \Drupal\text\Plugin\Field\FieldWidget\TextareaWidget::settingsForm()
  2. 8.9.x core/modules/text/src/Plugin/Field/FieldWidget/TextareaWidget.php \Drupal\text\Plugin\Field\FieldWidget\TextareaWidget::settingsForm()
  3. 10 core/modules/text/src/Plugin/Field/FieldWidget/TextareaWidget.php \Drupal\text\Plugin\Field\FieldWidget\TextareaWidget::settingsForm()

Overrides StringTextareaWidget::settingsForm

1 call to TextareaWidget::settingsForm()
TextareaWithSummaryWidget::settingsForm in core/modules/text/src/Plugin/Field/FieldWidget/TextareaWithSummaryWidget.php
Returns a form to configure settings for the widget.
1 method overrides TextareaWidget::settingsForm()
TextareaWithSummaryWidget::settingsForm in core/modules/text/src/Plugin/Field/FieldWidget/TextareaWithSummaryWidget.php
Returns a form to configure settings for the widget.

File

core/modules/text/src/Plugin/Field/FieldWidget/TextareaWidget.php, line 25

Class

TextareaWidget
Plugin implementation of the 'text_textarea' widget.

Namespace

Drupal\text\Plugin\Field\FieldWidget

Code

public function settingsForm(array $form, FormStateInterface $form_state) {
    $element = parent::settingsForm($form, $form_state);
    $element['rows']['#description'] = $this->t('Text editors may override this setting.');
    return $element;
}

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