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.
Problem/Motivation
we make several base fields to use just Entity field formatters and not special purpose field handlers in views. However, we have a lot of other field handlers in views that have more functionality than the corresponding field formatters.
Proposed resolution
Replace node_type with field formatter
Remaining tasks
create patch
User interface changes
Entity fields will have more formatting options available, and they'll be consistent with what is available in Views.
API changes
None
Comment | File | Size | Author |
---|---|---|---|
#18 | interdiff-2454171-18.txt | 1.23 KB | damiankloip |
#18 | 2454171-18.patch | 11.82 KB | damiankloip |
#14 | interdiff-2454171-14.txt | 1.05 KB | damiankloip |
#11 | interdiff-2454171-11.txt | 905 bytes | damiankloip |
Comments
Comment #1
xjmComment #2
damiankloip CreditAttribution: damiankloip commentedComment #3
damiankloip CreditAttribution: damiankloip commentedComment #4
dawehnerTs, you actually exported the view, and not just hacked the config directly.
Comment #6
damiankloip CreditAttribution: damiankloip commentedOops ok. Need to remove some of the yaml data. When we save handlers we should not keep old data. This seems to be what's happening?
Comment #7
dawehnerWell the update you made is probably fine, the fails are unrelated.
Comment #10
damiankloip CreditAttribution: damiankloip commentedYep, definitely related :)
Comment #11
damiankloip CreditAttribution: damiankloip commentedComment #12
damiankloip CreditAttribution: damiankloip commentedComment #14
damiankloip CreditAttribution: damiankloip commentedComment #15
dawehnerWe have this todo in
\Drupal\views\EntityViewsData::processViewsDataForEntityReference
Do you think we can simply drop them now?
Comment #16
effulgentsia CreditAttribution: effulgentsia commentedRaising to critical, because this looks like it's in the first (necessary for access control) category of the "proposed resolution" of #2393339: [META] Make sure Views base fields are using Field API for formatting, and do not lose functionality, but please correct me if I'm mistaken.
Comment #17
dawehnerWent through the views and these are indeed the only adjustments you have to do
This is a change on a filter, let's drop that change, even it might be technically the right thing to do.
Comment #18
damiankloip CreditAttribution: damiankloip commentedYep, agreed. Here you go.
Comment #19
dawehnerThank you!
Comment #20
alexpottThis issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed 5c2ec02 and pushed to 8.0.x. Thanks!
#2462589: Provide test coverage for access checking of all views fields. will provide the necessary access tests.