Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
field system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 Jul 2013 at 04:13 UTC
Updated:
29 Jul 2014 at 22:37 UTC
Jump to comment: Most recent file
Comments
Comment #1
yched commentedtagging
Comment #2
dawehnerThere we go.
Comment #3
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 commentedLooks good! Thanks!
Comment #6
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 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 commentedForgot one 'formatter' leftover.
Comment #12
yched commentedAh, indeed.
Comment #14
yched commentedNo kidding ?
#11: 2035315-11.patch queued for re-testing.
Comment #15
yched commentedComment #16
alexpottCommitted 637e6fb and pushed to 8.x. Thanks!
Comment #17
yched commentedresetting title