Toggle
class Toggle implements FieldType, JsonSerializable (View source)
Properties
protected string | $value |
Methods
Serialize the class.
Create a new instance of Text field type.
Returns the value when accessed as a string.
Return the value of this field.
Set the value of this field.
Return the display label for the field type.
Return the reference to the view used in the settings.
Return the view used in editing.
Return the config for the field type.
Details
mixed
jsonSerialize()
Serialize the class.
__construct(string $value = '')
Create a new instance of Text field type.
string
__toString()
Returns the value when accessed as a string.
mixed
getValue()
Return the value of this field.
void
setValue(mixed $value)
Set the value of this field.
string
getLabel()
Return the display label for the field type.
string
getSettingsView()
Return the reference to the view used in the settings.
string
getView()
Return the view used in editing.
array
getConfig()
Return the config for the field type.