You are here

public static function RangeFloatItem::getColumnSpecification in Range 8

Helper function. Returns Schema API column specification.

Parameters

\Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition: The field definition.

Return value

array Schema API column specification.

Overrides RangeItemInterface::getColumnSpecification

File

src/Plugin/Field/FieldType/RangeFloatItem.php, line 44

Class

RangeFloatItem
Plugin implementation of the 'range_float' field type.

Namespace

Drupal\range\Plugin\Field\FieldType

Code

public static function getColumnSpecification(FieldStorageDefinitionInterface $field_definition) {
  return [
    'type' => 'float',
  ];
}