protected makeSetting ( string $name, mixed $defaultValue, string $type, Closure $fieldConfigCallback ) : |
||
$name | string | The name of the setting that shall be created |
$defaultValue | mixed | The default value for this setting. Note the value will not be converted to the specified type. |
$type | string | The PHP internal type the value of this setting should have. Use one of FieldConfig::TYPE_* constancts |
$fieldConfigCallback | Closure | A callback method to configure the field that shall be displayed in the UI to define the value for this setting |
Результат | Returns an instance of the created measurable setting. |