Problem

Token not getting value of Entity in View arguments and returns an empty value.

It seems to me that this is due to the fact that the form widget incorrectly set parameters of Entity.

Steps to reproduce

- Add Entity Reference field.
- Set Rendered display widget.
- Set mode Views: Filter by an entity reference view in Entity selection.
- Choose some View with Entity Reference display.
- Set token in View arguments.

Filed settings

It may be necessary to exclude current node from list of references.

Proposed resolution

Small patch that helped me solve problem. Perhaps useful.

Comments

Loac created an issue.