You are here

public static function DecimalItem::defaultStorageSettings in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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 32
Contains \Drupal\Core\Field\Plugin\Field\FieldType\DecimalItem.

Class

DecimalItem
Defines the 'decimal' field type.

Namespace

Drupal\Core\Field\Plugin\Field\FieldType

Code

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