Set label, optionally for a specific language
Available since version 3.0.16. Added for consistency, all versions can still set property directly.
Usage
// basic usage
$field->setLabel(string $text);
// usage with all arguments
$field->setLabel(string $text, $language = null);
Arguments
Name | Type(s) | Description |
---|---|---|
text | string | Text to set |
language (optional) | Language, string, int, null | Language to use |
API reference based on ProcessWire core version 3.0.236