Problem/Motivation
You cannot create a view and try to list rendered entities using relationship.
Steps to reproduce (based on Standard profile):
- Add an entity reference field named "field_content" to the "page" content type. Allow content > article references.
- Create and edit a content view.
- Add a relationship for "Content using field_content."
- Change row style plugin to "Content" and hit "Apply".
- An AJAX error occurs.
The AJAX error is caused by fatal error triggered when RowPluginBase::buildOptionsForm()
calls RelationshipPluginBase::init()
while providing a wrong argument type (Array
instead of DisplayPluginBase
).
Proposed resolution
Fix it
Remaining tasks
Fix it, by passing along the relationship as needed and using it.
User interface changes
API changes
Task | Novice task? | Contributor instructions | Complete? |
---|---|---|---|
Create a patch | Instructions |