You are here

public static function StringTextareaWithCounterWidget::defaultSettings in Textfield Counter 8

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides StringTextareaWidget::defaultSettings

File

src/Plugin/Field/FieldWidget/StringTextareaWithCounterWidget.php, line 27

Class

StringTextareaWithCounterWidget
Plugin implementation of the 'string_textarea_with_counter' widget.

Namespace

Drupal\textfield_counter\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'maxlength' => 0,
    'counter_position' => 'after',
    'js_prevent_submit' => TRUE,
    'count_html_characters' => TRUE,
    'textcount_status_message' => self::getDefaultTextCountStatusMessage(),
  ] + parent::defaultSettings();
}