FieldtypeToggle::isEmptyValue()

Return whether the given value is considered empty or not.

This can be anything that might be present in a selector value and thus is typically a string. However, it may be used outside of that purpose so you shouldn't count on it being a string.

Example: an integer or text Fieldtype might not consider a "0" to be empty, whereas a Page reference would.

Usage

$bool = $fieldtypeToggle->isEmptyValue(Field $field, mixed $value);

Arguments

NameType(s)Description
$fieldField
$valuemixed

Return value

bool


FieldtypeToggle methods and properties

API reference based on ProcessWire core version 3.0.253