class Toggle implements FieldType, JsonSerializable (View source)

Properties

protected string $value

Methods

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.

Details

mixed jsonSerialize()

Serialize the class.

Return Value

mixed

__construct(string $value = '')

Create a new instance of Text field type.

Parameters

string $value

string __toString()

Returns the value when accessed as a string.

Return Value

string

mixed getValue()

Return the value of this field.

Return Value

mixed

void setValue(mixed $value)

Set the value of this field.

Parameters

mixed $value

Return Value

void

string getLabel()

Return the display label for the field type.

Return Value

string

string getSettingsView()

Return the reference to the view used in the settings.

Return Value

string

string getView()

Return the view used in editing.

Return Value

string

array getConfig()

Return the config for the field type.

Return Value

array