src/Contao/View/Contao2BackendView/ActionHandler/MultipleHandler/EditAllHandler.php
private function handleLegendCollapsed(array $fieldSets)
    {
        $editInformation = $GLOBALS['container']['dc-general.edit-information'];
        if (!$editInformation->hasAnyModelError()) {
            return $fieldSets;
        }

        foreach (\array_keys($fieldSets) as $index) {
            if ($editInformation->getModelError($fieldSets[$index]['model'])) {
                continue;
            }

            $fieldSets[$index]['class'] .= ' collapsed';
        }

        return $fieldSets;
    }
private function handleLegendCollapsed(array $fieldSets)
    {
        $editInformation = $GLOBALS['container']['dc-general.edit-information'];
        if (!$editInformation->hasAnyModelError()) {
            return $fieldSets;
        }

        foreach (\array_keys($fieldSets) as $index) {
            if ($editInformation->getModelError($fieldSets[$index]['model'])) {
                continue;
            }

            $fieldSets[$index]['class'] .= ' collapsed';
        }

        return $fieldSets;
    }
private function handleLegendCollapsed ( array $ fieldSets ) { $ editInformation = $ GLOBALS [ 'container' ] [ 'dc-general.edit-information' ] ; if ( ! $ editInformation -> hasAnyModelError ( ) ) { return $ fieldSets ; } foreach ( \ array_keys ( $ fieldSets ) as $ index ) { if ( $ editInformation -> getModelError ( $ fieldSets [ $ index ] [ 'model' ] ) ) { continue ; } $ fieldSets [ $ index ] [ 'class' ] .= ' collapsed' ; } return $ fieldSets ; }
Handle legend how are open if errors available.

@param array $fieldSets The field sets.

@return array

@SuppressWarnings(PHPMD.Superglobals)
Handle legend how are open if errors available .