You are here

public function StringTextfieldWithCounterWidget::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 StringTextfieldWidget::settingsSummary

File

src/Plugin/Field/FieldWidget/StringTextfieldWithCounterWidget.php, line 57

Class

StringTextfieldWithCounterWidget
Plugin implementation of the 'string_textfield_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;
}