public static function TextfieldWithCounterWidget::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 StringTextfieldWidget::defaultSettings
File
- src/
Plugin/ Field/ FieldWidget/ TextfieldWithCounterWidget.php, line 27
Class
- TextfieldWithCounterWidget
- Plugin implementation of the 'text_textfield_with_counter' widget.
Namespace
Drupal\textfield_counter\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
return [
'use_field_maxlength' => 0,
'maxlength' => 0,
'counter_position' => 'after',
'js_prevent_submit' => TRUE,
'count_html_characters' => TRUE,
'textcount_status_message' => self::getDefaultTextCountStatusMessage(),
] + parent::defaultSettings();
}