Provides a form element for numeric input, with special numeric validation.
Properties:
#default_value: A valid floating point number.
#min: Minimum value.
#max: Maximum value.
#step: Ensures that the number is an even multiple of step, offset by #min if specified. A #min of 1 and a #step of 2 would allow values of 1, 3, 5, etc.
Usage example:
$form['quantity'] = array(
'#type' => 'number',
'#title' => $this->t('Quantity'),
);
Plugin annotation
@FormElement("number")
Hierar