interface ManagedRolePermissionsManagerInterface in farmOS 2.x
Interface for the ManagedRolePermissionsManager.
Hierarchy
- interface \Drupal\farm_role\ManagedRolePermissionsManagerInterface
Expanded class hierarchy of ManagedRolePermissionsManagerInterface
All classes that implement ManagedRolePermissionsManagerInterface
1 file declares its use of ManagedRolePermissionsManagerInterface
- LogAssignActionForm.php in modules/
core/ owner/ src/ Form/ LogAssignActionForm.php
File
- modules/
core/ role/ src/ ManagedRolePermissionsManagerInterface.php, line 12
Namespace
Drupal\farm_roleView source
interface ManagedRolePermissionsManagerInterface {
/**
* Returns an array of managed roles.
*
* @return \Drupal\user\RoleInterface[]
* An array of managed roles.
*/
public function getMangedRoles() : array;
/**
* Checks if the role is a managed role.
*
* @param \Drupal\user\RoleInterface $role
* The Role to check.
*
* @return bool
* If the role is a managed role.
*/
public function isManagedRole(RoleInterface $role);
/**
* Checks if the role has a specified permission.
*
* @param string $permission
* The permission string to check.
* @param \Drupal\user\RoleInterface $role
* The Role to check.
*
* @return bool
* If the role has the permission.
*/
public function isPermissionInRole($permission, RoleInterface $role);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ManagedRolePermissionsManagerInterface:: |
public | function | Returns an array of managed roles. | 1 |
ManagedRolePermissionsManagerInterface:: |
public | function | Checks if the role is a managed role. | 1 |
ManagedRolePermissionsManagerInterface:: |
public | function | Checks if the role has a specified permission. | 1 |