OptionData

Type
Class
Namespace
craft\fields\data
Inherits
craft\fields\data\OptionData
Implements
craft\base\Serializable
Extended by
craft\fields\data\SingleOptionFieldData
Since
3.0.0

Class OptionData

View source

# Public Properties

# label

Type
string, null

View source

# selected

Type
boolean, null

View source

# valid

Type
boolean
Since
3.5.10

View source

# value

Type
string, null

View source

# Public Methods

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

# __construct()

Constructor

View source

Arguments

# __toString()

View source

Returns

string

# serialize()

Returns the object’s serialized value.

View source

Returns

mixed – The serialized value