src/Formio/Service/RoleService.php
public function getList(): array
    {
        $objects = $this->execute('GET', static::RESOURCE_LIST);
        $list = [];

        foreach ($objects as $name => $object) {
            $model = static::toModel($object);
            $list[] = $model;
        }

        return $list;
    }
public function getList(): array
    {
        $objects = $this->execute('GET', static::RESOURCE_LIST);
        $list = [];

        foreach ($objects as $name => $object) {
            $model = static::toModel($object);
            $list[] = $model;
        }

        return $list;
    }
public function getList ( ) : array { $ objects = $ this -> execute ( 'GET' , static :: RESOURCE_LIST ) ; $ list = [ ] ; foreach ( $ objects as $ name => $ object ) { $ model = static :: toModel ( $ object ) ; $ list [ ] = $ model ; } return $ list ; }
Get role list

@return array
Get role list