public static function AssociativeArray::hasValue in Map Widget 8
Helper function to exclude "truly empty" values.
Any value besides null or an empty string is considered a valid value.
Parameters
mixed $value: The value.
Return value
bool True anything other than null or empty string.
1 call to AssociativeArray::hasValue()
- AssociativeArray::valueCallback in src/
Element/ AssociativeArray.php - Determines how user input is mapped to an element's #value property.
File
- src/
Element/ AssociativeArray.php, line 211
Class
- AssociativeArray
- Class KeyValuePair provides a form element for entering paired values.
Namespace
Drupal\map_widget\ElementCode
public static function hasValue($value) {
return !is_null($value) && $value !== '';
}