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.
We have this interface, but it's empty at the moment. I think this is a good idea to implement, as stuff like efq will want to implement their own query class, and an interface will help with that.
postponing on #1941612: Tidy up view query plugin methods as that changes the method names.
There is nothing stopping the discussion of what methods should atleast be contained in this interface though.
Comment | File | Size | Author |
---|---|---|---|
#7 | vdc-1941672-7.patch | 1.16 KB | dawehner |
#2 | 1941672-2.patch | 11.08 KB | pwolanin |
Comments
Comment #1
pwolanin CreditAttribution: pwolanin commentedSeems the plugin methods were already tidied as part of #1856630: [Change notice] [META] Rename Views methods to core standards, e.g. [##2003270]
Comment #2
pwolanin CreditAttribution: pwolanin commentedneed some doxygen filled in yet, but here's a start.
Comment #3
pwolanin CreditAttribution: pwolanin commentedComment #4
tim.plunkettSee, here's why these are hard to do. These methods should be on ViewsPluginInterface or something wayyyy higher up
Comment #5
dawehnerMHHH I don't think that views is in the state of having usable interfaces.
As written from tim in #4, that is d9 content.
Comment #6
damiankloip CreditAttribution: damiankloip commentedAgreed, this issue is seriously old and outdated. It was probably forgotten about for a good reason :-) As with all other views plugins, you basically always extend the base class. That's how things are for views in d8. I think we pretty much all agreed they were a no go?
Comment #7
dawehnerI also think that for core it does not make sense to write a search views query interface.
Here is a slightly different approach.
Comment #8
damiankloip CreditAttribution: damiankloip commentedSo..
Comment #9
tim.plunkettYeah, let's be honest here.
Comment #10
tim.plunkettComment #11
klonosDoes that mean that #2083717: Convert Search Results to Views won't happen after all? :/
Comment #13
damiankloip CreditAttribution: damiankloip commentedWhy not?
Comment #14
damiankloip CreditAttribution: damiankloip commented#7: vdc-1941672-7.patch queued for re-testing.
Comment #15
damiankloip CreditAttribution: damiankloip commentedComment #16
dawehnerI think it will still happen: #2083717-6: Convert Search Results to Views, just different.
Comment #17
klonosOk, that's encouraging news.
Comment #18
catchCommitted/pushed to 8.x, thanks!
Comment #20
derhasi CreditAttribution: derhasi commentedThere was a small portion missing @see: #2143111: Fix documentation reference to obsolete \Drupal\views\Plugin\query\QueryInterface