protected static function Dimension::_defaultStorageSettings in Dimension 8
Same name and namespace in other branches
- 2.1.x src/Plugin/Field/FieldType/Dimension.php \Drupal\dimension\Plugin\Field\FieldType\Dimension::_defaultStorageSettings()
- 2.0.x src/Plugin/Field/FieldType/Dimension.php \Drupal\dimension\Plugin\Field\FieldType\Dimension::_defaultStorageSettings()
3 calls to Dimension::_defaultStorageSettings()
- Area::defaultStorageSettings in src/
Plugin/ Field/ FieldType/ Area.php - Defines the storage-level settings for this plugin.
- Length::defaultStorageSettings in src/
Plugin/ Field/ FieldType/ Length.php - Defines the storage-level settings for this plugin.
- Volume::defaultStorageSettings in src/
Plugin/ Field/ FieldType/ Volume.php - Defines the storage-level settings for this plugin.
File
- src/
Plugin/ Field/ FieldType/ Dimension.php, line 27
Class
Namespace
Drupal\dimension\Plugin\Field\FieldTypeCode
protected static function _defaultStorageSettings($fields) {
$settings = array(
'storage_value' => array(
'precision' => 10,
'scale' => 2,
),
);
foreach ($fields as $key => $label) {
$settings['storage_' . $key] = array(
'precision' => 10,
'scale' => 2,
);
}
return $settings;
}