Problem/Motivation
https://www.drupal.org/department-of-veterans-affairs site users would like to see entity moderation status in table.

| Comment | File | Size | Author |
|---|---|---|---|
| #17 | entity_browser_table-3166953-17.patch | 657 bytes | mario steinitz |
| #12 | add-moderation-status-6.patch | 4.39 KB | james hawthorn-byng |
| #11 | add-moderation-status-3166953-5.patch | 3.18 KB | ethant |
| Screenshot from 2020-08-24 09-46-31.png | 239.47 KB | ethant |
Comments
Comment #2
ethantComment #3
ethantComment #4
ethantComment #5
oksana-c commented@EthanT, the addition of entity's moderation status in entity browser table is super timely. thank you!
This is a good opportunity to expose default entity status when moderation is not enabled for a specific entity type. E.g. "Published / unpublished" instead of "Not moderated".
I also recommend keeping CSS rules for `.moderation-status` selector out of this patch. Projects can target this selector within their custom themes.
Comment #6
ethantUpdated patch per https://www.drupal.org/project/entity_browser_table/issues/3166953#comme...
Comment #7
ethantComment #8
ethantComment #9
ethantComment #10
ethantComment #11
ethantComment #12
james hawthorn-byng commented@EthanT I have edited you patch slightly to use dependency injection and made the new function names a bit more explicit.
Please could you review and let me know.
Thanks again for all your contributions.
Comment #13
ethantLooks good to me, @james-byng !
Comment #15
james hawthorn-byng commentedCool. Merged into the dev branch.
New release coming soon.
Comment #16
mario steinitzThe merge left the field widget broken, as the method getStatusColumnHeader() is missing in the current dev version.
Edit: It's not been the merge itself, but the renaming of commit c8b1b6c1da86ae6d9128bab6f115af63b18940b7. There is still a reference to the old name left in line 187.
Comment #17
mario steinitzThe attached patch fixes the error. (Didn't open another issue for the sake of a fast fix.)
Comment #18
james hawthorn-byng commentedComment #19
james hawthorn-byng commented