protected function NumericBase::defineDefaultProperties in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElement/NumericBase.php \Drupal\webform\Plugin\WebformElement\NumericBase::defineDefaultProperties()
Define an element's default properties.
Return value
array An associative array contain an the element's default properties.
Overrides WebformElementBase::defineDefaultProperties
3 calls to NumericBase::defineDefaultProperties()
- Number::defineDefaultProperties in src/
Plugin/ WebformElement/ Number.php - Define an element's default properties.
- Range::defineDefaultProperties in src/
Plugin/ WebformElement/ Range.php - Define an element's default properties.
- WebformScale::defineDefaultProperties in src/
Plugin/ WebformElement/ WebformScale.php - Define an element's default properties.
3 methods override NumericBase::defineDefaultProperties()
- Number::defineDefaultProperties in src/
Plugin/ WebformElement/ Number.php - Define an element's default properties.
- Range::defineDefaultProperties in src/
Plugin/ WebformElement/ Range.php - Define an element's default properties.
- WebformScale::defineDefaultProperties in src/
Plugin/ WebformElement/ WebformScale.php - Define an element's default properties.
File
- src/
Plugin/ WebformElement/ NumericBase.php, line 18
Class
- NumericBase
- Provides a base 'numeric' class.
Namespace
Drupal\webform\Plugin\WebformElementCode
protected function defineDefaultProperties() {
return [
// Form validation.
'readonly' => FALSE,
'size' => '',
'placeholder' => '',
'autocomplete' => 'on',
] + parent::defineDefaultProperties();
}