Problem/Motivation

Currently, it's hard to manage theming for the View, because Viewsreference array consist only data from the module form. It would be great to have host entity in the $view->element['#viewsreference'] array to get more flexibility in the future.

Proposed resolution

Add info about host entity to the Viewsreference array.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

Comments

_shY created an issue. See original summary.

_shy’s picture

Issue summary: View changes
_shy’s picture

Status: Active » Needs review
StatusFileSize
new682 bytes

- Added host entity type id and entity id to the $view->element['#viewsreference'];

id.conky’s picture

I also faced with the situation when need host entity data while altering views to adjust some things.
In general patch #3 looks fine, but on my opinion it will be easier to work with host entity by passing whole object instead of just type and id.
Patch attached.

seanb’s picture

I think this is a duplicate of #3090713: Parent field entity in plugin interface which I just committed. Does this solve the issue?

id.conky’s picture

Status: Needs review » Closed (duplicate)

Cool, thanks! This issue can be closed now.