Problem/Motivation
Sometimes you know a machine name for a permission but can't find it on the permissions page (mismatch, translation, etc).
It'd be nice to be able to easily search by machine name, but those strings are only available if you view source and really know what you're searching for. Not good for folks trying to develop custom or contrib modules and debug what they're doing, etc. See #53 for more.
Sadly, this is one of the most busy forms/pages in Drupal, so we don't always want to see that unless we need to.
Proposed resolution
Optionally display machine names.
A) Via an inconspicuous JS link to toggle (along the lines of "show row weights" vs. table drag) next to the existing toggle to show/hide the descriptions. #62-#64.
B) Via an advanced setting somewhere (e.g. Add a "Development" field group at /config/people/accounts with a checkbox to opt-in) #57
C) Always display. Working patch in #47.
Remaining tasks
- Decide on an approach
- Update tests
- Update code
- Review
- RTBC
- Commit
User interface changes
(Conditionally?) display machine names on the permissions page.
Exact mechanism TBD.
API changes
None.
Data model changes
None.
Release notes snippet
TBD.
Original report by @RoySegall
Hello everyone.
There was an idea that came up in the office - display the machine name of the user permission near to the check boxes.
This is good when we write a test or developing a module.