RoleHierarchy
class RoleHierarchy implements RoleHierarchyInterface
RoleHierarchy defines a role hierarchy.
Methods
__construct(array $hierarchy)
Constructor.
getReachableRoles(array $roles)
Returns an array of all reachable roles by the given ones.
Details
at line line 29
__construct(array $hierarchy)
Constructor.
at line line 39
RoleInterface[]
getReachableRoles(array $roles)
Returns an array of all reachable roles by the given ones.
Reachable roles are the roles directly assigned but also all roles that are transitively reachable from them in the role hierarchy.