public function TextfieldWithCounterWidget::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/ TextfieldWithCounterWidget.php, line 57 
Class
- TextfieldWithCounterWidget
- Plugin implementation of the 'text_textfield_with_counter' widget.
Namespace
Drupal\textfield_counter\Plugin\Field\FieldWidgetCode
public function settingsSummary() {
  $summary = parent::settingsSummary();
  $this
    ->addMaxlengthSummary($summary);
  $this
    ->addPositionSummary($summary);
  $this
    ->addJsSubmitPreventSummary($summary);
  $this
    ->addCountHtmlSummary($summary);
  $this
    ->addTextCountStatusMessageSummary($summary);
  return $summary;
}