Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291026

Add all views hooks to hook_hook_info()

$
0
0

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.

AttachmentSizeStatusTest resultOperations
d8.views-hook-info.patch10.85 KBIdleFAILED: [[SimpleTest]]: [MySQL] 50,255 pass(es), 7 fail(s), and 450 exception(s).View details | Re-test

Viewing all articles
Browse latest Browse all 291026

Trending Articles