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

Change pre_render and post_render callbacks to accept callables

$
0
0

Now we have moved to psr-0 and make heavy use of classes/namespaces etc... it would make sense to allow the '#pre_render' and '#post_render' callback arrays to process any php callable and not just a function. This would promote better code organisation. For a good example of this, see views_handler_field_custom_pre_render_move_text in views.module.

AttachmentSizeStatusTest resultOperations
d8.render-callables.patch1.92 KBIdlePASSED: [[SimpleTest]]: [MySQL] 55,952 pass(es).View details | Re-test

Viewing all articles
Browse latest Browse all 313881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>