Problem/Motivation
When attempting to add the entity usage field to the media view - /admin/content/media, the following error message is shown:

It appears the entity id key is unable to be resolved as an alias, i.e. For media the id should be aliased to mid, but instead it's just id.
Steps to reproduce
- Go to view - /admin/content/media
- Add 'Entity usage field' to view
- Error displayed when attempting to preview (as attached)
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | entity_usage_views_field-unable-to-alias-id.patch | 1010 bytes | mortim07 |
| 2020-12-22_16-41-52.png | 125.34 KB | mortim07 |
Issue fork entity_usage_views_field-3189453
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mortim07 commentedComment #3
dpiThanks, looking into this.
Comment #4
dpiComment #6
dpiComment #7
dpi@mortim07 could you review the changes? including the other commits on 2.x branch to make sure the project still works for you?
Comment #8
mortim07 commented@dpi Will do!
Comment #10
dpiComment #11
mortim07 commented@dpi That branch doesn't have my patch on it.
Comment #12
dpiCheckout the MR
Comment #13
mortim07 commented@dpi Yep, works perfectly now. Love the tests too! :)
Comment #16
dpiMerged!