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