public static function MeasurementItem::defaultStorageSettings in Physical Fields 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/ MeasurementItem.php, line 110
Class
- MeasurementItem
- Plugin implementation of the 'physical_measurement' field type.
Namespace
Drupal\physical\Plugin\Field\FieldTypeCode
public static function defaultStorageSettings() {
return [
'measurement_type' => MeasurementType::LENGTH,
] + parent::defaultStorageSettings();
}