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.
Has anyone started working on a D8 port?
Has anyone started working on a D8 port?
Comments
Comment #2
mikeker CreditAttribution: mikeker as a volunteer commentedMonths (years?) ago I started a D8 port but didn't get much past the point of renaming files and whatnot. At this point I would consider it completely non-functional.
Considering how out of date that code is with current D8 core, I would recommend starting from a clean slate. I am hoping to work on the D8 port of BEF in the next month but would welcome any and all contributions to the effort. I've just added an 8.x release -dev release so that contributors can post patches against that branch in the issue queue.
Comment #3
Lukas von BlarerI totally agree with the complete rewrite. Once there is a basic port, I'd start filing issues and provide patches where I can.
Comment #4
FrancewhoaHi all :) The current D8 branch can be found at https://www.drupal.org/node/2601050
We would be happy to contribute testing patch, quality assurance, documentation, and agile project management services if needed
Related pages
I updated the title so it's easier to find in aggregators and searches
Comment #5
mikeker CreditAttribution: mikeker as a volunteer commented@Lukas von Blarer, @Francewhoa, thank you for your patience. I've started work on the D8 port of BEF this week and will continue with it next week (short week in the US due to the Thanksgiving holidays :)
At the moment, the 8.x-3.x branch is fairly broken, but does have working radio buttons and checkboxes. My hope is to figure out a MVP option for BEF 8.x release and put that out as an early alpha.
I haven't come up with a good plan yet -- still trying to learn how a module like this integrates with the rest of Drupal core. Once I have a decent plan, I'll post it here with child issues that could use help.
Thanks.
Comment #6
mikeker CreditAttribution: mikeker as a volunteer commentedComment #7
mikeker CreditAttribution: mikeker as a volunteer commentedAt this point, BEF is basically in alpha. I'm waiting on #2651102: Using checkboxes for exposed filters results in zero rows displaying to be committed in core before tagging a "real" alpha release. See #2606848: [better_exposed_filters] Better Exposed Filters for more details.
The code is in much better shape -- it's roughly halfway through a rewrite. The hope is to move much of the code out of the exposed_form_alter and into template preprocess functions and Twig templates (now that Views no longer works around core's render pipeline). What is left in the BetterExposedFilters class should be the minimum required to set the options and redirect the render engine to the correct template.
In other words, if folks are interested in helping out, jump on in! And feel free to ask questions or open issues against the 8.x branch as needed.
Comment #8
mikeker CreditAttribution: mikeker as a volunteer commentedMarking this as closed as there is an alpha release of BEF on D8 as of today. I'll be using #2753111: Finish the Drupal 8 port of Better Exposed Filters to track remaining tasks to get to a 8.x-3.0 release.