Field::getIcon() method

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

NameType(s)Description
$prefix (optional)bool

Whether or not you want the icon prefix included (i.e. "fa-")

Return value

mixed string


$field methods and properties

API reference based on ProcessWire core version 3.0.251