Follow up from #2136197: Move field/instance/widget/formatter settings out of annotation / plugin definition - see #102
Copying over from that issue
Just one more thing about the removal of the CT keys from the various annotations: @yched's summary makes some convincing points about the need to do that, so I won't argue about this, but the reason those settings are attached to field annotations is that they are specific to every field-type. CT cannot automatically provide that information for every field-type contrib may provide, so if we want to remove them we need to introduce a new way for field-type-defining modules to integrate with CT and provide it the information it needs. I guess this is what @jessebeach was referring to in #87 with @TranslationSync plugins. Those might be overkill given the kind of information we need to provide, but at very least a basic _info() hook would be needed.
Postponed until
#2136197: Move field/instance/widget/formatter settings out of annotation / plugin definition
Comment | File | Size | Author |
---|---|---|---|
#11 | interdiff.txt | 1.85 KB | swentel |
#11 | 2224779-11.patch | 8.21 KB | swentel |
#9 | 2224779-9.patch | 7.36 KB | swentel |
Comments
Comment #1
swentel CreditAttribution: swentel commentedtypo
Comment #2
tim.plunkettIf this is a beta blocker, it is critical.
Comment #3
jessebeach CreditAttribution: jessebeach commentedComment #4
plachI think @yched said the current status is ok regarding field type plugin definition (see https://drupal.org/comment/8606301#comment-8606301.) Do we still need this?
Comment #5
plachI guess we could repurpose this (and demote it!) to make field sync work with entity field definitions and remove configurable field special-casing.
Comment #6
swentel CreditAttribution: swentel commentedYeah, I've been thinking about it too whether this one is critical, I also think we can demote, but it doesn't block us afaict. I'll quickly assign to yched to get his thoughts.
Comment #7
jessebeach CreditAttribution: jessebeach commentedUnpostponed!
Comment #8
swentel CreditAttribution: swentel commentedWorking on this. We're going to move the 'column_groups' out of the settings into a dedicated annotation.
Comment #9
swentel CreditAttribution: swentel commentedFirst patch - should be green. Need to work on the presentation now ;)
Comment #10
plachLooking good! Just one remark:
I guess we actually don't want this here :) It's a key provided by CT so it should be documented by CT somewhere. We had a similar issue with entity type annotations: #1968970: Standardize module-provided entity info documentation and clean-up the @EntityType annotation. Not sure what would actually be the best place in CT to document those. Probably in the
content_translation_field_info_alter()
PHP docs.Comment #11
swentel CreditAttribution: swentel commentedYeah, that makes sense. New patch moving it to content_translation_field_info_alter()
Comment #12
plachAwesome! RTBC if green.
Comment #13
alexpottCommitted 4a06454 and pushed to 8.x. Thanks!
Comment #15
yched CreditAttribution: yched commentedw00t ! Thanks folks !