Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The documentation for the range form element shows an example with input type number instead of range.
$form['quantity'] = array(
'#type' => 'number',
'#title' => $this->t('Quantity'),
);
Which should be
$form['quantity'] = array(
'#type' => 'range',
'#title' => $this->t('Quantity'),
);
Comment | File | Size | Author |
---|---|---|---|
#2 | updatedocs-2762715-1.patch | 432 bytes | pontus_nilsson |
Comments
Comment #2
pontus_nilssonAttaching patch.
Comment #3
pontus_nilssonComment #4
pontus_nilssonComment #6
lucur CreditAttribution: lucur at Reinblau commentedPatch works with 8.3.x.-dev
Comment #7
lucur CreditAttribution: lucur at Reinblau commentedComment #9
lucur CreditAttribution: lucur at Reinblau commentedThe patch passed re-test for 8.3.x-dev and worked on a local installation.
Comment #12
catchCommitted/pushed to 8.3.x and cherry-picked to 8.2.x. Thanks!