public static function ComputedFieldItem::defaultStorageSettings in Computed Field 8
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/ ComputedFieldItem.php, line 40
Class
- ComputedFieldItem
- Plugin implementation of the 'computed' field type.
Namespace
Drupal\computed_field\Plugin\Field\FieldTypeCode
public static function defaultStorageSettings() {
return array(
'data_type' => 'varchar',
'data_length' => 32,
'data_size' => 'normal',
'data_precision' => 10,
'data_scale' => 2,
) + parent::defaultStorageSettings();
}