Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 296021

Add hasRole() method to AccountInterface

$
0
0

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().


Viewing all articles
Browse latest Browse all 296021

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>