You are here

public static function TextareaWithCounterWidget::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/TextareaWithCounterWidget.php, line 27

Class

TextareaWithCounterWidget
Plugin implementation of the 'text_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();
}