NumberType implements SettingsTypeInterface
Read onlyYes
Attributes
- #[AsTaggedItem]
- $index: 'number'
Table of Contents
Interfaces
Properties
- $logger : LoggerInterface
Methods
- __construct() : mixed
- getJavaScriptModule() : string
- transformValue() : int|float
- validate() : bool
Properties
$logger
protected
LoggerInterface
$logger
Methods
__construct()
public
__construct(LoggerInterface $logger) : mixed
Parameters
- $logger : LoggerInterface
getJavaScriptModule()
public
getJavaScriptModule() : string
Return values
stringtransformValue()
public
transformValue(mixed $value, SettingDefinition $definition) : int|float
Parameters
- $value : mixed
- $definition : SettingDefinition
Return values
int|floatvalidate()
public
validate(mixed $value, SettingDefinition $definition) : bool
Parameters
- $value : mixed
- $definition : SettingDefinition