You are here

public static function DecimalItem::defaultStorageSettings in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php \Drupal\Core\Field\Plugin\Field\FieldType\DecimalItem::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

core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php, line 27

Class

DecimalItem
Defines the 'decimal' field type.

Namespace

Drupal\Core\Field\Plugin\Field\FieldType

Code

public static function defaultStorageSettings() {
  return [
    'precision' => 10,
    'scale' => 2,
  ] + parent::defaultStorageSettings();
}