It might be a good idea to implement all views hooks in views_hook_info implementation of hook_hook_info. Then they all have the option of living in the MODULE.views.inc file.
This is also a good opportunity to expand the test coverage a bit and update the tests to use the module handler service. I think the drupal_static stuff in the current ViewsHookTest are broken slightly too.
I have also refactored views_hook_info so it's not as repetitive.
Attachment | Size | Status | Test result | Operations |
---|---|---|---|---|
d8.views-hook-info.patch | 10.85 KB | Idle | FAILED: [[SimpleTest]]: [MySQL] 50,255 pass(es), 7 fail(s), and 450 exception(s). | View details | Re-test |