Problem/Motivation
ECK entities in particular, and maybe other entities extend from ContentEntityBase, and therefore implement RevisionableInterface, but do not actually support or have revisions. Nevertheless, these entities get labelled "Translations or previous revisions" in the usage view. Instead, if there are no revisions, they should be labelled "default"
Proposed resolution
Adjust ListUsageController.php to not just check if $record['source_vid'] == $default_revision_id to determine whether the label for a source entity should be "default" or "Translations or previous revisions," but also set it to "default" when $default_revision_id ($source_entity->getRevisionId() ) is null.
Comment | File | Size | Author |
---|
Issue fork entity_usage-3408306
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
dgroene CreditAttribution: dgroene at The College Board commentedComment #3
dgroene CreditAttribution: dgroene at The College Board commentedComment #6
silvi.addweb CreditAttribution: silvi.addweb at AddWeb Solution Pvt. Ltd. for AddWeb Solution Pvt. Ltd. commentedIt's working fine and also raised MR for the same.
Comment #9
marcoscanoThanks for opening and working on a fix.
I would have preferred that we add test coverage for the new scenario we are supporting, but it's fine as-is, I'm getting the fix in in the meantime.