InputfieldToggle::getLabels()
Get labels for the given label type
Usage
// basic usage
$array = $inputfieldToggle->getLabels();
// usage with all arguments
$array = $inputfieldToggle->getLabels(int $labelType = null, $language = null);Arguments
| Name | Type(s) | Description |
|---|---|---|
$labelType (optional) | int | Specify toggle type constant or omit to use configured toggle type. |
$language (optional) |
Return value
arrayReturned array has these indexes:
no (string): No/Off state label
yes (string): Yes/On state label
other (string): Other state label
unknown (string): No selection label
InputfieldToggle methods and properties
API reference based on ProcessWire core version 3.0.252