IconData ​
- Type
- Class
- Namespace
- craft\fields\data
- Inherits
- craft\fields\data\IconData
- Implements
- craft\base\Serializable
- Since
- 5.8.0
Class IconData
Public Properties ​
Property | Description |
---|---|
name | |
styles |
name
​
- Default value
null
styles
​
- Default value
null
Public Methods ​
Method | Description |
---|---|
__construct() | Constructor |
__toString() | |
serialize() | Returns the object’s serialized value. |
__construct()
​
Constructor
Arguments ​
$name
(string) – The icon name$styles
(string[]) – The Font Awesome styles the icon is available in
__toString()
​
Returns ​
serialize()
​
Returns the object’s serialized value.
Returns ​
mixed
– The serialized value