function FloatItem::fieldSettingsForm
Same name in other branches
- 9 core/lib/Drupal/Core/Field/Plugin/Field/FieldType/FloatItem.php \Drupal\Core\Field\Plugin\Field\FieldType\FloatItem::fieldSettingsForm()
- 8.9.x core/lib/Drupal/Core/Field/Plugin/Field/FieldType/FloatItem.php \Drupal\Core\Field\Plugin\Field\FieldType\FloatItem::fieldSettingsForm()
- 11.x core/lib/Drupal/Core/Field/Plugin/Field/FieldType/FloatItem.php \Drupal\Core\Field\Plugin\Field\FieldType\FloatItem::fieldSettingsForm()
Overrides NumericItemBase::fieldSettingsForm
File
-
core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ FloatItem.php, line 57
Class
- FloatItem
- Defines the 'float' field type.
Namespace
Drupal\Core\Field\Plugin\Field\FieldTypeCode
public function fieldSettingsForm(array $form, FormStateInterface $form_state) {
$element = parent::fieldSettingsForm($form, $form_state);
$element['min']['#step'] = 'any';
$element['max']['#step'] = 'any';
return $element;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.