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.
Updated: Comment #N
Problem/Motivation
In Drupal\number\Plugin\field\formatter\NumberDecimalFormatter::settingsForm
, form elements are not well defined and uses 'weight'
instead of '#weight'
as parameter, which leds to the following warning message:
Proposed resolution
Change 'weight'
and use the right parameter '#weight'
.
Remaining tasks
User interface changes
API changes
Related Issues
Comment | File | Size | Author |
---|---|---|---|
#11 | weight_warning-2114473-11.patch | 7.08 KB | plopesc |
#11 | weight_warning-2114473-11-test-only.patch | 5.95 KB | plopesc |
#7 | weight_warning-2114473-7.patch | 7.07 KB | plopesc |
#7 | weight_warning-2114473-7-only-test.patch | 5.94 KB | plopesc |
#4 | weight_warning-2114473-3.patch | 1.13 KB | plopesc |
Comments
Comment #1
plopescPatch
Comment #2
amateescu CreditAttribution: amateescu commentedLooks good :)
Comment #3
plopescRerolled after #2050835: Move Widget, Formatter, and FieldType plugin types to the Core\Field system is in.
Comment #4
plopescRerolled after #2050835: Move Widget, Formatter, and FieldType plugin types to the Core\Field system is in.Same patch that #3Comment #5
Xano#4: weight_warning-2114473-3.patch queued for re-testing.
Comment #6
alexpottThis means that this form is never ever tested
Comment #7
plopescAdding tests
Comment #8
plopescComment #10
plopescBack to needs review given that last patch worked.
Regards
Comment #11
plopescRe-rolling after #1988612: Apply formatters and widgets to rendered entity base fields, starting with node.title
Comment #13
swentel CreditAttribution: swentel commentedComment #14
swentel CreditAttribution: swentel commentedCould a core committer add a space here ?
Comment #15
alexpottLove the tests! Committed 5e91589 and pushed to 8.x. Thanks!
Fixed in commit as requested...