Return the icon used by this field, or blank if none.
Usage
// basic usage
$mixed = $field->getIcon();
// usage with all arguments
$mixed = $field->getIcon(bool $prefix = false);
Arguments
Name | Type(s) | Description |
---|---|---|
prefix (optional) | bool | Whether or not you want the icon prefix included (i.e. "fa-") |
Return value
mixed
string
API reference based on ProcessWire core version 3.0.236