Drupal 8.0.0 beta 12. More info: https://www.drupal.org/node/2514176
This commit is contained in:
commit
9921556621
13277 changed files with 1459781 additions and 0 deletions
30
core/modules/user/src/RoleStorageInterface.php
Normal file
30
core/modules/user/src/RoleStorageInterface.php
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\user\RoleStorageInterface.
|
||||
*/
|
||||
|
||||
namespace Drupal\user;
|
||||
|
||||
use Drupal\Core\Config\Entity\ConfigEntityStorageInterface;
|
||||
|
||||
/**
|
||||
* Defines an interface for role entity storage classes.
|
||||
*/
|
||||
interface RoleStorageInterface extends ConfigEntityStorageInterface {
|
||||
|
||||
/**
|
||||
* Returns whether a permission is in one of the passed in roles.
|
||||
*
|
||||
* @param string $permission
|
||||
* The permission.
|
||||
* @param array $rids
|
||||
* The list of role IDs to check.
|
||||
*
|
||||
* @return bool
|
||||
* TRUE is the permission is in at least one of the roles. FALSE otherwise.
|
||||
*/
|
||||
public function isPermissionInRoles($permission, array $rids);
|
||||
|
||||
}
|
Reference in a new issue