Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/user/src/RoleStorageInterface.php @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c75dbcec494b |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\user; | |
4 | |
5 use Drupal\Core\Config\Entity\ConfigEntityStorageInterface; | |
6 | |
7 /** | |
8 * Defines an interface for role entity storage classes. | |
9 */ | |
10 interface RoleStorageInterface extends ConfigEntityStorageInterface { | |
11 | |
12 /** | |
13 * Returns whether a permission is in one of the passed in roles. | |
14 * | |
15 * @param string $permission | |
16 * The permission. | |
17 * @param array $rids | |
18 * The list of role IDs to check. | |
19 * | |
20 * @return bool | |
21 * TRUE is the permission is in at least one of the roles. FALSE otherwise. | |
22 */ | |
23 public function isPermissionInRoles($permission, array $rids); | |
24 | |
25 } |