public function TextareaWidget::settingsForm in Drupal 10
Same name and namespace in other branches
- 8 core/modules/text/src/Plugin/Field/FieldWidget/TextareaWidget.php \Drupal\text\Plugin\Field\FieldWidget\TextareaWidget::settingsForm()
- 9 core/modules/text/src/Plugin/Field/FieldWidget/TextareaWidget.php \Drupal\text\Plugin\Field\FieldWidget\TextareaWidget::settingsForm()
Returns a form to configure settings for the widget.
Invoked from \Drupal\field_ui\Form\EntityDisplayFormBase to allow administrators to configure the widget. The field_ui module takes care of handling submitted form values.
Parameters
array $form: The form where the settings form is being included in.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form definition for the widget settings.
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 26
Class
- TextareaWidget
- Plugin implementation of the 'text_textarea' widget.
Namespace
Drupal\text\Plugin\Field\FieldWidgetCode
public function settingsForm(array $form, FormStateInterface $form_state) {
$element = parent::settingsForm($form, $form_state);
$element['rows']['#description'] = $this
->t('Text editors (like CKEditor) may override this setting.');
return $element;
}