Problem/Motivation
In #2991232: Add hasRole() method to AccountProxy and UserSession classes we added hasRole()
implementation to AccountProxy.php
and UserSession.php
classes. The AccountInterface
remained unchanged to keep it compatible with existing contrib and custom AccountInterface
implementations.
Proposed resolution
Move method hasRole()
definition to AccountInterface
.
Remaining tasks
Wait for 10.x branch- Wait for #2991232: Add hasRole() method to AccountProxy and UserSession classes to land
Do the changeOpen MRDraft CR: https://www.drupal.org/node/3283218Make sure all tests are still happy- Reviews / refinements
- RTBC
API changes
AccountInterface
has been extended with a new method - AccountInterface::hasRole()
.