public function getFilterColumns(FormView $formView, int $numColumns = 3): array
    {
        $columns = [];
        $i = 0;
        foreach ($formView as $formItem) {
            $columns[$i % $numColumns][] = $formItem;
            ++$i;
        }

        return $columns;
    }
public function getFilterColumns(FormView $formView, int $numColumns = 3): array
    {
        $columns = [];
        $i = 0;
        foreach ($formView as $formItem) {
            $columns[$i % $numColumns][] = $formItem;
            ++$i;
        }

        return $columns;
    }
public function getFilterColumns ( FormView $ formView , int $ numColumns = 3 ) : array { $ columns = [ ] ; $ i = 0 ; foreach ( $ formView as $ formItem ) { $ columns [ $ i % $ numColumns ] [ ] = $ formItem ; ++ $ i ; } return $ columns ; }
Simple function to split form widgets in as many columns as wanted

@param FormView $formView
@param int      $numColumns

@return array
Simple function to split form widgets in as many columns as wanted