public static function ComputedDecimalItem::generateSampleValue in Computed Field 8.2
Same name and namespace in other branches
- 3.x src/Plugin/Field/FieldType/ComputedDecimalItem.php \Drupal\computed_field\Plugin\Field\FieldType\ComputedDecimalItem::generateSampleValue()
@todo Add useful code.
Overrides FieldItemBase::generateSampleValue
File
- src/
Plugin/ Field/ FieldType/ ComputedDecimalItem.php, line 71
Class
- ComputedDecimalItem
- Plugin implementation of the 'computed_decimal' field type.
Namespace
Drupal\computed_field\Plugin\Field\FieldTypeCode
public static function generateSampleValue(FieldDefinitionInterface $field_definition) {
$values['value'] = 0;
return $values;
}