Skip to content

IconData ​

Type
Class
Namespace
craft\fields\data
Inherits
craft\fields\data\IconData
Implements
craft\base\Serializable
Since
5.8.0

Class IconData

View source

Public Properties ​

PropertyDescription
name
styles

name ​

Default value
null

View source

styles ​

Default value
null

View source

Public Methods ​

MethodDescription
__construct()Constructor
__toString()
serialize()Returns the object’s serialized value.

__construct() ​

Constructor

View source

Arguments ​

  • $name (string) – The icon name
  • $styles (string[]) – The Font Awesome styles the icon is available in

__toString() ​

View source

Returns ​

string

serialize() ​

Returns the object’s serialized value.

View source

Returns ​

mixed – The serialized value