protected function TextField::defineDefaultProperties in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElement/TextField.php \Drupal\webform\Plugin\WebformElement\TextField::defineDefaultProperties()
Define an element's default properties.
Return value
array An associative array contain an the element's default properties.
Overrides TextBase::defineDefaultProperties
1 call to TextField::defineDefaultProperties()
- WebformAutocomplete::defineDefaultProperties in src/
Plugin/ WebformElement/ WebformAutocomplete.php - Define an element's default properties.
1 method overrides TextField::defineDefaultProperties()
- WebformAutocomplete::defineDefaultProperties in src/
Plugin/ WebformElement/ WebformAutocomplete.php - Define an element's default properties.
File
- src/
Plugin/ WebformElement/ TextField.php, line 23
Class
- TextField
- Provides a 'textfield' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
protected function defineDefaultProperties() {
return [
// Form display.
'input_mask' => '',
'input_hide' => FALSE,
// Form validation.
'counter_type' => '',
'counter_minimum' => NULL,
'counter_minimum_message' => '',
'counter_maximum' => NULL,
'counter_maximum_message' => '',
] + parent::defineDefaultProperties() + $this
->defineDefaultMultipleProperties();
}