Problem/Motivation
Following on from http://drupal.org/node/1945390#comment-7247250 with further detail in http://drupal.org/node/1945390#comment-7215306, we ideally want user_access to be an injectable service.
Proposed resolution
Convert user_access into a service that can be injected wherever needed.
Remaining tasks
Experimental conversion- Initial sanity check
- Finalize conversion
- Convert all instances in code to use the new service, including test conversion
- Reviews (tests should be covered by existing tests using the new service)
- Documentation updates
User interface changes
None
API changes
All instances of user_access would be changed to the new service.
Related Issues
#1945390: Convert book_admin_edit to a new-style FormInterface implementation