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.
#1777194: One handler test to rule them all reveiled something nasty.
// language
$data['users']['language']['moved to'] = array('users', 'langcode');
$data['users']['langcode'] = array(
'title' => t('Language'), // The item it appears as on the UI,
'help' => t('Language of the user'),
'field' => array(
'id' => 'user_language',
'click sortable' => TRUE,
),
'sort' => array(
'id' => 'standard',
),
'filter' => array(
'id' => 'node_language',
),
'argument' => array(
'id' => 'node_language',
),
);
This piece of code wants to use a node_language argument plugin but it doesn't exist...
Not good ;)
Comment | File | Size | Author |
---|---|---|---|
#9 | views-1778768-9.patch | 3.28 KB | dawehner |
#5 | language-fix.patch | 339 bytes | aspilicious |
Comments
Comment #1
dawehnerdawehner--
dawehner--
dawehner--
The files should be in #1605332: Adapt language integration to d8 but the commit missed the language handler to be committed
Once the files are in there, we can directly use the language handlers there.
Comment #2
aspilicious CreditAttribution: aspilicious commentedWe deleted this file...
Comment #3
dawehnerThat's right, but the patch should have added
Views\language\Plugin\views\argument\Language
Comment #4
aspilicious CreditAttribution: aspilicious commentedAh but that one is added so we should just point to the correct plugin...
Comment #5
aspilicious CreditAttribution: aspilicious commentedSee
Comment #6
dawehnerThis
filter and argument should use language here. If you look at comment.views.inc you will find other instances of that as well, sry
Comment #7
aspilicious CreditAttribution: aspilicious commentedI assign this to dawhener!
Comment #8
dawehner.
Comment #9
dawehnerThis fixes comment/user/taxonomy integration.
Comment #10
aspilicious CreditAttribution: aspilicious commentedGood to go!
Comment #11
dawehnerLet's get it in