RoleHierarchyInterface

interface RoleHierarchyInterface

RoleHierarchyInterface is the interface for a role hierarchy.

Methods

RoleInterface[] getReachableRoles(array $roles)

Returns an array of all reachable roles by the given ones.

Details

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.

Parameters

array $roles An array of directly assigned roles

Return Value

RoleInterface[] An array of all reachable roles
doc_Symfony
2016-10-28 06:30:41
Comments
Leave a Comment

Please login to continue.