public static function ComputedDecimalItem::defaultStorageSettings in Computed Field 8.2
Same name and namespace in other branches
- 3.x src/Plugin/Field/FieldType/ComputedDecimalItem.php \Drupal\computed_field\Plugin\Field\FieldType\ComputedDecimalItem::defaultStorageSettings()
Defines the storage-level settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides FieldItemBase::defaultStorageSettings
File
- src/
Plugin/ Field/ FieldType/ ComputedDecimalItem.php, line 29
Class
- ComputedDecimalItem
- Plugin implementation of the 'computed_decimal' field type.
Namespace
Drupal\computed_field\Plugin\Field\FieldTypeCode
public static function defaultStorageSettings() {
return [
'precision' => 10,
'scale' => 2,
] + parent::defaultStorageSettings();
}