BaseSettingFactory
Base factory class to generate widget settings.
Contains interfaces for all common properties of a setting.
Methods
public static create($data = [])
Type |
Name |
Description |
|
public withType($type):Settings
Set the type of the setting.
Type |
Name |
Description |
|
public withOption($key, $value):Settings
Set an option for the setting.
Type |
Name |
Description |
|
The option key |
|
|
The option value |
public withDefaultValue($defaultValue):Settings
Set the default value for the setting.
Type |
Name |
Description |
|
The default value |
public withCondition($condition):Settings
Set a condition if the setting should be visible or not.
Type |
Name |
Description |
|
Condition if the related form element should be visible or not. |
public withName($name):Settings
Set the name of the setting.
Type |
Name |
Description |
|
The label of the setting |
public withTooltip($tooltip):Settings
Set a tooltip text for this input
Type |
Name |
Description |
|
An additional description of the setting |
public withList($min, $max):Settings
Determines whether the declaration is used to render a list of the specified form field.
Type |
Name |
Description |
|
Minimum number of entries. |
|
|
Maximum number of entries. If not set or smaller than 0, unlimited entries might be added by the user. |
public toArray():array
Get all data as a native array