protected function getGroupContents(): array
    {
        $contents = [];

        foreach ($this->children() as $key => $child) {

            if (is_string($child)) {
                $contents[] = [ 'key' => $child, 'type' => 'field' ];
                continue;
            }

            $contents[] = [ 'key' => $key, 'type' => $child->type() ];
        }

        return $contents;
    }
protected function getGroupContents(): array
    {
        $contents = [];

        foreach ($this->children() as $key => $child) {

            if (is_string($child)) {
                $contents[] = [ 'key' => $child, 'type' => 'field' ];
                continue;
            }

            $contents[] = [ 'key' => $key, 'type' => $child->type() ];
        }

        return $contents;
    }
protected function getGroupContents ( ) : array { $ contents = [ ] ; foreach ( $ this -> children ( ) as $ key => $ child ) { if ( is_string ( $ child ) ) { $ contents [ ] = [ 'key' => $ child , 'type' => 'field' ] ; continue ; } $ contents [ ] = [ 'key' => $ key , 'type' => $ child -> type ( ) ] ; } return $ contents ; }
Returns the groups contents with type information.

@return array    list of arrays with key, type child data
Returns the groups contents with type information .