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.
Rather than having all available entities and fields be indexed–rather time consuming on large sites–what about an alter hook to change supported entities.
Comments
Comment #2
pureawesome CreditAttribution: pureawesome commentedComment #3
generalredneckJust keep in mind your solution is entity Property specific and doesn't affect fields that are being indexed. I've got a different solution in the works at the moment and feel that if I implement this I will have to support some backwards compatibility.
What you have here Works... and it's simple and elegant, but in the grand scheme of the architecture, I'm going to have to look at something different... Probably something closer to the lines of the patch I'm attaching.
My patch is technically less performant than yours because it goes through a bigger dataset currently. I'll be working on this feature more.
Comment #5
generalredneckHere's a version that passes linting.
Comment #7
generalredneckViews has broken tests right now causing the automated tests to not function. see #2903006: Fix tests for 7.x-3.x
Comment #9
generalredneckI implemented my previous patch. There were several improvements in there that helped build upon other work. Let me know if you have any issues.
Comment #11
generalredneckReopening as this needs a port to D8.
Comment #12
generalredneckThis was handled for D8 in https://git.drupalcode.org/project/views_natural_sort/-/blob/8.x-2.x/src...