src/Security/Group.php
public function collateAncestorIDs()
    {
        $parent = $this;
        $items = [];
        while ($parent instanceof Group) {
            $items[] = $parent->ID;
            $parent = $parent->getParent();
        }
        return $items;
    }
public function collateAncestorIDs()
    {
        $parent = $this;
        $items = [];
        while ($parent instanceof Group) {
            $items[] = $parent->ID;
            $parent = $parent->getParent();
        }
        return $items;
    }
public function collateAncestorIDs ( ) { $ parent = $ this ; $ items = [ ] ; while ( $ parent instanceof Group ) { $ items [ ] = $ parent -> ID ; $ parent = $ parent -> getParent ( ) ; } return $ items ; }
Returns an array of the IDs of this group and all its parents

@return array
Returns an array of the IDs of this group and all its parents