5 use Drupal\Core\Config\Entity\ConfigEntityStorageInterface;
8 * Defines an interface for role entity storage classes.
10 interface RoleStorageInterface extends ConfigEntityStorageInterface {
13 * Returns whether a permission is in one of the passed in roles.
15 * @param string $permission
18 * The list of role IDs to check.
21 * TRUE is the permission is in at least one of the roles. FALSE otherwise.
23 public function isPermissionInRoles($permission, array $rids);