You are here

public static function TextFieldCounterWidgetTrait::getDefaultTextCountStatusMessage in Textfield Counter 8

Get the default value for the textcount_status_message widget setting.

Return value

string The default message for widget settings.

5 calls to TextFieldCounterWidgetTrait::getDefaultTextCountStatusMessage()
StringTextareaWithCounterWidget::defaultSettings in src/Plugin/Field/FieldWidget/StringTextareaWithCounterWidget.php
Defines the default settings for this plugin.
StringTextfieldWithCounterWidget::defaultSettings in src/Plugin/Field/FieldWidget/StringTextfieldWithCounterWidget.php
Defines the default settings for this plugin.
TextareaWithCounterWidget::defaultSettings in src/Plugin/Field/FieldWidget/TextareaWithCounterWidget.php
Defines the default settings for this plugin.
TextareaWithSummaryAndCounterWidget::defaultSettings in src/Plugin/Field/FieldWidget/TextareaWithSummaryAndCounterWidget.php
Defines the default settings for this plugin.
TextfieldWithCounterWidget::defaultSettings in src/Plugin/Field/FieldWidget/TextfieldWithCounterWidget.php
Defines the default settings for this plugin.

File

src/Plugin/Field/FieldWidget/TextFieldCounterWidgetTrait.php, line 173

Class

TextFieldCounterWidgetTrait
Textfield counter trait. Adds textfield counting functionality.

Namespace

Drupal\textfield_counter\Plugin\Field\FieldWidget

Code

public static function getDefaultTextCountStatusMessage() {
  return 'Maxlength: <span class="maxlength_count">@maxlength</span><br />Used: <span class="current_count">@current_length</span><br />Remaining: <span class="remaining_count">@remaining_count</span>';
}