InputfieldToggle::getLabels() method

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

NameType(s)Description
labelType (optional)int

Specify toggle type constant or omit to use configured toggle type.

language (optional)

Return value

array

Returned 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.244

“The end client and designer love the ease at which they can update the website. Training beyond how to log in wasn’t even necessary since ProcessWire’s default interface is straightforward.” —Jonathan Lahijani