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
Public Properties ​
Property | Description |
---|---|
label | string, null |
selected | boolean, null |
valid | boolean |
value | string, null |
label
​
selected
​
valid
​
- Type
- boolean
- Default value
null
- Since
- 3.5.10
value
​
Public Methods ​
Method | Description |
---|---|
__construct() | Constructor |
__toString() | |
serialize() | Returns the object’s serialized value. |
__construct()
​
Constructor
Arguments ​
__toString()
​
Returns ​
serialize()
​
Returns the object’s serialized value.
Returns ​
mixed
– The serialized value