Add selectable option with label, optionally for specific language
Available since version 3.0.176.
Usage
// basic usage
$inputfieldSelect->addOptionLabel($value, string $label);
// usage with all arguments
$inputfieldSelect->addOptionLabel($value, string $label, $language = null);
Arguments
Name | Type(s) | Description |
---|---|---|
value | string, int | |
label | string | |
language (optional) | Language, null |
Return value
$this
Object instance it was called from (method supports fluent interface).
InputfieldSelect methods and properties
API reference based on ProcessWire core version 3.0.236