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.
Just looking at the code, it seems Drupal\field\Plugin\views\field\Field::process_entity() uses a $values variable that doesn't seem to be defined anywhere ?
I don't really know what's supposed to work or not, just found that when grepping some code in my IDE.
I know this is technically within field.module component, but I hope you guys will bear with me ;-)
Comment | File | Size | Author |
---|---|---|---|
#3 | drupal-1866260.patch | 921 bytes | Sweetchuck |
Comments
Comment #1
xjmHere's the function up to where it gets checked:
Comment #2
xjmComment #3
SweetchuckComment #5
SweetchuckIn my test environment the tests of "Locale" does not run smoothly. Without any patch.
Core version 902b741725bad30c4c0351af669071177291f7ae 21/10/13 22:34
1648 passes, 13 fails, 3 exceptions, and 518 debug messages
Tests translation of configuration strings.
25 passes, 6 fails, 2 exceptions, and 10 debug messages
Tests the import of locale files.
199 passes, 2 fails, 1 exception, and 75 debug messages
Adds a new locale and translates its name. Checks the validation of translation strings and search results.
346 passes, 2 fails, 0 exceptions, and 121 debug messages
Tests for updating the interface translations of projects.
393 passes, 3 fails, 0 exceptions, and 124 debug messages
...
Comment #6
damiankloip CreditAttribution: damiankloip commentedWon't the property more than likely be protected now, so this will fail? Do we need to use a getter instead?
Comment #7
yched CreditAttribution: yched commentedYes, I guess property_exists() is moot now anyway.
Problem is, I have no idea what this code is supposed to be doing (that it's obviously not doing). We have some code that's clearly wrong, but no observable bug yet :-/
Comment #8
Anonymous (not verified) CreditAttribution: Anonymous commentedThe
$values
parameter is now passed in the functions arguments:I guess this ticket is no longer relevant?
Comment #17
LendudeCleaning up old issues.
This got refactored into \Drupal\views\Plugin\views\field\EntityField::createEntityForGroupBy is seems like. The original code no longer exists so closing this as outdated, feel free to reopen this is if you still feel there is something to do here.