QUERY_FORMAT_WILDCARD = 1,
QUERY_FORMAT_NO_QUOTES = 2,
+ /**
+ * No serialization.
+ */
+ SERIALIZE_NONE = 0,
/**
* Serialized string separated by and bookended with VALUE_SEPARATOR
*/
return;
}
$label = $this->label ?? $this->title ?? NULL;
- if (!$label && $label !== '0' && !$isRequired) {
- // No label supplied and name not required, do nothing
+ if (!$label && $label !== '0') {
+ // No label supplied, do nothing
return;
}
$maxLen = static::getSupportedFields()['name']['maxlength'] ?? 255;