Problem/Motivation
views_plugin_row_node_view::render() currently doesn't add a reference to the current view as e.g. views_plugin_row_node_view::render() / views_plugin_row_user_view::render( do.
This stops the views theme suggestions from working as those are only added when the view object is available. See views_preprocess_node()
Proposed resolution
Add the view as entity object property in views_plugin_row_node_view::render() before calling drupal_render().
Remaining tasks
Reviews needed.
User interface changes
None.
API changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | entity-views-row-plugin-add-view-reference-2340487-3.patch | 756 bytes | das-peter |
Comments
Comment #1
a.milkovskyMakes sense for me.
Comment #2
fagoI see.
This is a good reason for doing it, but this should be commented it in the code. Else this looks good.
Comment #3
das-peter commentedAdded comment. I'd say back to RTBC.
Comment #4
fagoThanks, committed.