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.
Currently join handlers are pure classes, but wouldn't it make sense to convert them to a type of views plugin as well?
This would at least unify the way how to integrate things in hook_views_data
Comment | File | Size | Author |
---|---|---|---|
#6 | 1706258-join-plugins.patch | 19.12 KB | dawehner |
Comments
Comment #1
dawehner.
Comment #2
dawehnerThere is a branch called "join-plugins" in the sandbox, so feel free to have a look at.
Comment #3
tim.plunkettI added a couple use statements that were missing, but I'm getting:
Fatal error: Call to undefined method stdClass::construct() in /Users/tim/www/d8/sites/all/modules/views/lib/Drupal/views/Plugin/views/relationship/RelationshipPluginBase.php on line 143
and I haven't debugged it yet.Comment #4
dawehnerCurrently joins don't have set_definition etc. so i had to write an extra helper function to get a join plugin.
This time a basic relationship works.
Comment #5
damiankloip CreditAttribution: damiankloip commentedComment #6
dawehnerLet's see what the testbot tells us about the patch
Comment #7
dawehnerLet's get this in now, so we can work on other stuff.