src/Contao/Dca/Builder/Legacy/LegacyDcaDataDefinitionBuilder.php
private function hasSubmit($rows)
    {
        foreach ($rows as $row) {
            foreach ($row as $element) {
                if ($element instanceof SubmitElementInformationInterface) {
                    return true;
                }
            }
        }

        return false;
    }
private function hasSubmit($rows)
    {
        foreach ($rows as $row) {
            foreach ($row as $element) {
                if ($element instanceof SubmitElementInformationInterface) {
                    return true;
                }
            }
        }

        return false;
    }
private function hasSubmit ( $ rows ) { foreach ( $ rows as $ row ) { foreach ( $ row as $ element ) { if ( $ element instanceof SubmitElementInformationInterface ) { return true ; } } } return false ; }
Check if the rows is somewhere a submit element.

@param PanelRowCollectionInterface $rows The panel rows.

@return bool
Check if the rows is somewhere a submit element .