Skip to content

Iconic ​

Type
Interface
Namespace
craft\base
Implemented by
craft\elements\Entry, craft\models\EntryType
Since
5.0.0

Iconic defines the common interface to be implemented by components that can have icons within the control panel.

View source

Public Methods ​

MethodDescription
getIcon()Returns the component’s icon, if it has one.

getIcon() ​

Returns the component’s icon, if it has one.

The returned icon can be a system icon’s name (e.g. 'whiskey-glass-ice'), the path to an SVG file, or raw SVG markup.

System icons can be found in src/icons/solid/.

View source

Returns ​

string, null