public static function DecimalPropertyType::validate in Entity Construction Kit (ECK) 7.3
Validate.
Overrides PropertyTypeInterface::validate
File
- ./
eck.property_type.inc, line 297 - Property types.
Class
Code
public static function validate($value) {
$number = filter_var($value, FILTER_VALIDATE_FLOAT);
return $number !== FALSE;
}