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.
Public Methods ​
Method | Description |
---|---|
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/.