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.
When for example extending a Query with PagerDefault and that has an error, the error tells you only that you are using PagerDefault but not where :)
Patch simply checks if the class implements QueryExtendableInterface...
Comment | File | Size | Author |
---|---|---|---|
#4 | filter_out_extenders2.patch | 924 bytes | Berdir |
filter_out_extenders.patch | 928 bytes | Berdir | |
Comments
Comment #1
Crell CreditAttribution: Crell commentedShouldn't it be SelectQueryExtender? QueryExtendableInterface is the one on Select itself, saying it CAN be extended. It's not what's on the ExtendER, but the ExtendEE.
Comment #2
Berdirevery extender can be extended itself, so it doesn't really matter :)
SelectQueryExtender implements SelectQueryInterface which extends QueryExtendableInterface.
So any of these works technically but I'm happy to change it if you think that another one makes more sense logically.
Comment #3
Crell CreditAttribution: Crell commentedWell bah!
I suppose we could do both... I mean, we want to skip both of them in the stack trace, right? :-)
Comment #4
BerdirHm, I don't think both makes any sense because SelectQueryInterface extends from QueryExtendableInterface, so checking SelectQueryInterface automatically includes QueryExtendableInterface.
However, in all other Places where we check an interface, we use SelectQueryInterface, so I updated the patch to use that one.
Comment #6
Berdir#4: filter_out_extenders2.patch queued for re-testing.