Get non-empty value in this order: current lang, default lang, other lang, failValue
Available since version 3.0.147.
Usage
// basic usage
$string = $languagesPageFieldValue->getNonEmptyValue();
// usage with all arguments
$string = $languagesPageFieldValue->getNonEmptyValue(string $failValue = '');
Arguments
Name | Type(s) | Description |
---|---|---|
failValue (optional) | string | Value to use if we cannot find a non-empty value |
Return value
string
LanguagesPageFieldValue methods and properties
API reference based on ProcessWire core version 3.0.236