You are here

public static function ComputedIntegerItem::defaultStorageSettings in Computed Field 8.2

Same name and namespace in other branches
  1. 3.x src/Plugin/Field/FieldType/ComputedIntegerItem.php \Drupal\computed_field\Plugin\Field\FieldType\ComputedIntegerItem::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

src/Plugin/Field/FieldType/ComputedIntegerItem.php, line 28

Class

ComputedIntegerItem
Plugin implementation of the 'computed_integer' field type.

Namespace

Drupal\computed_field\Plugin\Field\FieldType

Code

public static function defaultStorageSettings() {
  return [
    'unsigned' => FALSE,
    // Valid size property values include: 'tiny', 'small', 'medium', 'normal'
    // and 'big'.
    'size' => 'normal',
  ] + parent::defaultStorageSettings();
}