public static function NumericItemBase::defaultFieldSettings in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Field/Plugin/Field/FieldType/NumericItemBase.php \Drupal\Core\Field\Plugin\Field\FieldType\NumericItemBase::defaultFieldSettings()
Defines the field-level settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides FieldItemBase::defaultFieldSettings
1 call to NumericItemBase::defaultFieldSettings()
- IntegerItem::defaultFieldSettings in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ IntegerItem.php - Defines the field-level settings for this plugin.
1 method overrides NumericItemBase::defaultFieldSettings()
- IntegerItem::defaultFieldSettings in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ IntegerItem.php - Defines the field-level settings for this plugin.
File
- core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ NumericItemBase.php, line 16
Class
- NumericItemBase
- Base class for numeric configurable field types.
Namespace
Drupal\Core\Field\Plugin\Field\FieldTypeCode
public static function defaultFieldSettings() {
return [
'min' => '',
'max' => '',
'prefix' => '',
'suffix' => '',
] + parent::defaultFieldSettings();
}