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.
Comment | File | Size | Author |
---|---|---|---|
#11 | 2035315-11.patch | 575 bytes | swentel |
#4 | widget-2035315-4.patch | 23.62 KB | dawehner |
#4 | interdiff.txt | 15.55 KB | dawehner |
#2 | drupal-2035315-2.patch | 20.93 KB | dawehner |
Comments
Comment #1
yched CreditAttribution: yched commentedtagging
Comment #2
dawehnerThere we go.
Comment #3
yched CreditAttribution: yched commentedYay ! Thanks a lot for this :-)
A bit shaky :-).
Maybe "Widgets handle how fields are displayed in edit forms" ?
s/formatter/widget/ :-)
I think there was some movement on that front while I was afk - where do we stand with those now, isn't that automatically added ?
"The name of the widget class" ?
@var boolean :-p
Additionally, we support an optional "weight" property (currently only used by HiddenWidget AFAIK, that's the specific case for which the propery was introduced). The doc for that in hook_field_widget_info() (before the "Widgets as plugins" patch) was :
"weight: (optional) An integer to determine the weight of this widget relative to other widgets in the Field UI when selecting a widget for a given field instance".
It should default to NULL, though.
WidgetPluginManager::$default should be removed.
Also, #1985344: Add a dedicated @FieldFormatter annotation also took care of removing FormatterFactory (adding the corresponding code in createInstance() override in FormatterPluginManager - see commitdiff).
Dunno the reasons why this was done in one go back then, but should we do the same here ?
Comment #4
dawehnerThank you for the good review!
The worse the original comment is, the better the suggestion will be.
I did not had copy and paste with that annotation!
This is added now named "provider" to the metadata, so we can clean stuff up. Sadly this makes the patch bigger.
Comment #5
yched CreditAttribution: yched commentedLooks good! Thanks!
Comment #6
yched CreditAttribution: yched commentedOpened #2041423: Rely on 'provider' instead of 'module' for Field plugin types
Comment #7
alexpottCommitted 4fc16f8 and pushed to 8.x. Thanks!
Comment #8
alexpottComment #9
yched CreditAttribution: yched commentedCool !
Updated https://drupal.org/node/1796000
Comment #10
tim.plunkettThis actually meant WidgetFactory is never used, see #2052751: WidgetFactory is not used anywhere so it should be removed for the removal of it.
Comment #11
swentel CreditAttribution: swentel commentedForgot one 'formatter' leftover.
Comment #12
yched CreditAttribution: yched commentedAh, indeed.
Comment #14
yched CreditAttribution: yched commentedNo kidding ?
#11: 2035315-11.patch queued for re-testing.
Comment #15
yched CreditAttribution: yched commentedComment #16
alexpottCommitted 637e6fb and pushed to 8.x. Thanks!
Comment #17
yched CreditAttribution: yched commentedresetting title