protected makeSetting ( string $name, mixed $defaultValue, string $type, $configureCallback ) : |
||
$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 |
Результат | Returns an instance of the created measurable setting. |