public function UnlimitedNumberWidget::getUnlimitedValue in Unlimited Number Field 8
Same name and namespace in other branches
- 2.x src/Plugin/Field/FieldWidget/UnlimitedNumberWidget.php \Drupal\unlimited_number\Plugin\Field\FieldWidget\UnlimitedNumberWidget::getUnlimitedValue()
Get unlimited value from settings.
Return value
integer
2 calls to UnlimitedNumberWidget::getUnlimitedValue()
- UnlimitedNumberWidget::formElement in src/
Plugin/ Field/ FieldWidget/ UnlimitedNumberWidget.php - Returns the form for a single field widget.
- UnlimitedNumberWidget::massageFormValues in src/
Plugin/ Field/ FieldWidget/ UnlimitedNumberWidget.php - Massages the form values into the format expected for field values.
File
- src/
Plugin/ Field/ FieldWidget/ UnlimitedNumberWidget.php, line 114
Class
- UnlimitedNumberWidget
- Plugin implementation of the 'unlimited_number' widget.
Namespace
Drupal\unlimited_number\Plugin\Field\FieldWidgetCode
public function getUnlimitedValue() {
$value_unlimited_raw = $this
->getSetting('value_unlimited');
return empty($value_unlimited_raw) ? 0 : $value_unlimited_raw;
}