Patched to Drupal 8.4.8 level. See https://www.drupal.org/sa-core-2018-004 and patch...
[yaffs-website] / web / core / modules / user / src / RoleStorageInterface.php
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 }