Format label for HTML output (entity encode, etc.)
Usage
// basic usage
$string = $inputfieldToggle->formatLabel(string $label);
// usage with all arguments
$string = $inputfieldToggle->formatLabel(string $label, bool $allowIcon = true);
Arguments
Name | Type(s) | Description |
---|---|---|
label | string | |
allowIcon (optional) | bool | Allow icon markup to appear in label? |
Return value
string
InputfieldToggle methods and properties
API reference based on ProcessWire core version 3.0.236