You are here

public function TextareaWithCounterWidget::settingsSummary in Textfield Counter 8

Returns a short summary for the current widget settings.

If an empty result is returned, a UI can still be provided to display a settings form in case the widget has configurable settings.

Return value

array A short summary of the widget settings.

Overrides StringTextareaWidget::settingsSummary

File

src/Plugin/Field/FieldWidget/TextareaWithCounterWidget.php, line 56

Class

TextareaWithCounterWidget
Plugin implementation of the 'text_textarea_with_counter' widget.

Namespace

Drupal\textfield_counter\Plugin\Field\FieldWidget

Code

public function settingsSummary() {
  $summary = parent::settingsSummary();
  $this
    ->addMaxlengthSummary($summary);
  $this
    ->addPositionSummary($summary);
  $this
    ->addJsSubmitPreventSummary($summary);
  $this
    ->addCountHtmlSummary($summary);
  $this
    ->addTextCountStatusMessageSummary($summary);
  return $summary;
}