public function loadPolicies($roleId, Request $request)
    {
        $loadedRole = $this->roleService->loadRole($roleId);

        return new Values\PolicyList($loadedRole->getPolicies(), $request->getPathInfo());
    }
public function loadPolicies($roleId, Request $request)
    {
        $loadedRole = $this->roleService->loadRole($roleId);

        return new Values\PolicyList($loadedRole->getPolicies(), $request->getPathInfo());
    }
public function loadPolicies ( $ roleId , Request $ request ) { $ loadedRole = $ this -> roleService -> loadRole ( $ roleId ) ; return new Values \ PolicyList ( $ loadedRole -> getPolicies ( ) , $ request -> getPathInfo ( ) ) ; }
Loads the policies for the role.

@param $roleId

@return \eZ\Publish\Core\REST\Server\Values\PolicyList
Loads the policies for the role .