public function getUserGroups()
    {
        $groups = [];
        foreach ($this->adminGroupConfiguration->getGroups() as $groupName) {
            $groups[] = $this->getUserGroup("$groupName");
        }
        $groups[] = $this->getUserGroup('guest');

        return $groups;
    }
public function getUserGroups()
    {
        $groups = [];
        foreach ($this->adminGroupConfiguration->getGroups() as $groupName) {
            $groups[] = $this->getUserGroup("$groupName");
        }
        $groups[] = $this->getUserGroup('guest');

        return $groups;
    }
public function getUserGroups ( ) { $ groups = [ ] ; foreach ( $ this -> adminGroupConfiguration -> getGroups ( ) as $ groupName ) { $ groups [ ] = $ this -> getUserGroup ( "$groupName" ) ; } $ groups [ ] = $ this -> getUserGroup ( 'guest' ) ; return $ groups ; }
Get list of all user groups.
Can be useful for creating group based GUI widgets.

@return Group[]
Get list of all user groups . Can be useful for creating group based GUI widgets .