You are here

public function StringTextareaWithCounterWidget::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/StringTextareaWithCounterWidget.php, line 55

Class

StringTextareaWithCounterWidget
Plugin implementation of the 'string_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;
}