You are here

public function RoleStorageInterface::isPermissionInRoles in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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
Returns whether a permission is in one of the passed in roles.

File

core/modules/user/src/RoleStorageInterface.php, line 28
Contains \Drupal\user\RoleStorageInterface.

Class

RoleStorageInterface
Defines an interface for role entity storage classes.

Namespace

Drupal\user

Code

public function isPermissionInRoles($permission, array $rids);