public function ComputedNumberWidget::getDefaultValue in Computed Field 8.2
Same name and namespace in other branches
- 3.x src/Plugin/Field/FieldWidget/ComputedNumberWidget.php \Drupal\computed_field\Plugin\Field\FieldWidget\ComputedNumberWidget::getDefaultValue()
Define how the widget is constructed.
File
- src/
Plugin/ Field/ FieldWidget/ ComputedNumberWidget.php, line 23
Class
- ComputedNumberWidget
- Plugin implementation of the 'computed_number_widget' widget.
Namespace
Drupal\computed_field\Plugin\Field\FieldWidgetCode
public function getDefaultValue() {
return 0;
}