function RoleStorageInterface::isPermissionInRoles
Same name in other branches
- 9 core/modules/user/src/RoleStorageInterface.php \Drupal\user\RoleStorageInterface::isPermissionInRoles()
- 8.9.x core/modules/user/src/RoleStorageInterface.php \Drupal\user\RoleStorageInterface::isPermissionInRoles()
- 11.x core/modules/user/src/RoleStorageInterface.php \Drupal\user\RoleStorageInterface::isPermissionInRoles()
Returns whether a permission is in one of the passed in roles.
Parameters
string $permission: The permission.
array $rids: The list of role IDs to check.
Return value
bool TRUE is the permission is in at least one of the roles. FALSE otherwise.
1 method overrides RoleStorageInterface::isPermissionInRoles()
- RoleStorage::isPermissionInRoles in core/
modules/ user/ src/ RoleStorage.php
File
-
core/
modules/ user/ src/ RoleStorageInterface.php, line 23
Class
- RoleStorageInterface
- Defines an interface for role entity storage classes.
Namespace
Drupal\userCode
public function isPermissionInRoles($permission, array $rids);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.