You are here

public static function ComputedFloatItem::generateSampleValue in Computed Field 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldType/ComputedFloatItem.php \Drupal\computed_field\Plugin\Field\FieldType\ComputedFloatItem::generateSampleValue()

@todo Add useful code.

Overrides FieldItemBase::generateSampleValue

File

src/Plugin/Field/FieldType/ComputedFloatItem.php, line 54

Class

ComputedFloatItem
Plugin implementation of the 'computed_float' field type.

Namespace

Drupal\computed_field\Plugin\Field\FieldType

Code

public static function generateSampleValue(FieldDefinitionInterface $field_definition) {
  $values['value'] = 0;
  return $values;
}