public static function UnlimitedNumberWidget::defaultSettings in Unlimited Number Field 2.x
Same name and namespace in other branches
- 8 src/Plugin/Field/FieldWidget/UnlimitedNumberWidget.php \Drupal\unlimited_number\Plugin\Field\FieldWidget\UnlimitedNumberWidget::defaultSettings()
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides NumberWidget::defaultSettings
File
- src/
Plugin/ Field/ FieldWidget/ UnlimitedNumberWidget.php, line 26
Class
- UnlimitedNumberWidget
- Plugin implementation of the 'unlimited_number' widget.
Namespace
Drupal\unlimited_number\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
return [
'value_unlimited' => 0,
'label_unlimited' => t('Unlimited'),
'label_number' => t('Limited'),
] + parent::defaultSettings();
}