function ListFloatItem::castAllowedValue
Same name in other branches
- 9 core/modules/options/src/Plugin/Field/FieldType/ListFloatItem.php \Drupal\options\Plugin\Field\FieldType\ListFloatItem::castAllowedValue()
- 8.9.x core/modules/options/src/Plugin/Field/FieldType/ListFloatItem.php \Drupal\options\Plugin\Field\FieldType\ListFloatItem::castAllowedValue()
- 11.x core/modules/options/src/Plugin/Field/FieldType/ListFloatItem.php \Drupal\options\Plugin\Field\FieldType\ListFloatItem::castAllowedValue()
Overrides ListItemBase::castAllowedValue
File
-
core/
modules/ options/ src/ Plugin/ Field/ FieldType/ ListFloatItem.php, line 116
Class
- ListFloatItem
- Plugin implementation of the 'list_float' field type.
Namespace
Drupal\options\Plugin\Field\FieldTypeCode
protected static function castAllowedValue($value) {
return (double) $value;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.