This is reliant on #1993312: Change pre_render and post_render callbacks to accept callables, but once in we can attach and render callbacks to plugins/handlers. This seems generally a nice idea to me. This function is only applicable to the Drupal\views\Plugin\views\field\Custom handler, but currently lives in views.module. Just doesn't make sense. Patch attached containing #1993312 also, if people want to test.
Steps to test:
- Add a 'Global: Custom text' field handler
- On the handler edit form 'Text' textarea should appear directly below the 'exclude from display' checkbox (screenshot attached)
Attachment | Size | Status | Test result | Operations |
---|---|---|---|---|
Screen Shot 2013-05-13 at 08.08.33.png | 33.49 KB | Ignored | None | None |
vdc.move-custom_pre_render-with-1993312.patch | 3.68 KB | Idle | PASSED: [[SimpleTest]]: [MySQL] 55,904 pass(es). | View details | Re-test |
vdc.move-custom_pre_render-do-not-test.patch | 1.77 KB | Ignored | None | None |