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;
Commit
Review;
API changes
AccountInterface
has been extended with a new method - AccountInterface::hasRole()
.