Iconic ​
- Type
- Interface
- Namespace
- craft\base
- Implemented by
- craft\base\Field, craft\elements\Entry, craft\fields\Addresses, craft\fields\Assets, craft\fields\BaseOptionsField, craft\fields\BaseRelationField, craft\fields\Categories, craft\fields\Checkboxes, craft\fields\Color, craft\fields\Country, craft\fields\Date, craft\fields\Dropdown, craft\fields\Email, craft\fields\Entries, craft\fields\Icon, craft\fields\Lightswitch, craft\fields\Link, craft\fields\Matrix, craft\fields\MissingField, craft\fields\Money, craft\fields\MultiSelect, craft\fields\Number, craft\fields\PlainText, craft\fields\RadioButtons, craft\fields\Range, craft\fields\Table, craft\fields\Tags, craft\fields\Time, craft\fields\Users, craft\models\EntryType, craft\models\Section
- 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/.