Skip to content
Snippets Groups Projects
Commit 699918fe authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2135845 by Wim Leers: UserInterface duplicates some methods of AccountInterface.

parent cf8a0e80
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -15,14 +15,6 @@
*/
interface UserInterface extends ContentEntityInterface, AccountInterface {
/**
* Returns a list of roles.
*
* @return array
* List of role IDs.
*/
public function getRoles();
/**
* Whether a user has a certain role.
*
......@@ -50,17 +42,6 @@ public function addRole($rid);
*/
public function removeRole($rid);
/**
* Checks whether a user has a certain permission.
*
* @param string $permission
* The permission string to check.
*
* @return bool
* TRUE if the user has the permission, FALSE otherwise.
*/
public function hasPermission($permission);
/**
* Sets the username of this account.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment