Skip to content
Snippets Groups Projects

Issue #3365913: Number: Support min and max

1 file
+ 2
0
Compare changes
  • Side-by-side
  • Inline
@@ -24,6 +24,8 @@ class NumberSettingType extends PatternSettingTypeBase {
'#title' => $def->getLabel(),
'#description' => $def->getDescription(),
'#default_value' => $this->getValue($value),
'#min' => $def['min'] ?? NULL,
'#max' => $def['max'] ?? NULL,
];
$this->handleInput($form[$def->getName()], $def, $form_type);
return $form;
Loading