src/Contao/View/Contao2BackendView/ActionHandler/SelectHandler.php
private function regardSelectMode(EnvironmentInterface $environment)
    {
        $inputProvider = $environment->getInputProvider();

        $regardSelectMode = false;
        \array_map(
            function ($value) use ($inputProvider, &$regardSelectMode) {
                if (!$inputProvider->hasValue($value)) {
                    return false;
                }

                $regardSelectMode = true;
                return true;
            },
            ['edit_save', 'edit_saveNback', 'override_save', 'override_saveNback', 'delete', 'copy', 'cut']
        );

        if (('auto' === $inputProvider->getValue('SUBMIT_TYPE'))
            && ('edit' === $inputProvider->getParameter('select'))
        ) {
            return true;
        }

        return $regardSelectMode;
    }
private function regardSelectMode(EnvironmentInterface $environment)
    {
        $inputProvider = $environment->getInputProvider();

        $regardSelectMode = false;
        \array_map(
            function ($value) use ($inputProvider, &$regardSelectMode) {
                if (!$inputProvider->hasValue($value)) {
                    return false;
                }

                $regardSelectMode = true;
                return true;
            },
            ['edit_save', 'edit_saveNback', 'override_save', 'override_saveNback', 'delete', 'copy', 'cut']
        );

        if (('auto' === $inputProvider->getValue('SUBMIT_TYPE'))
            && ('edit' === $inputProvider->getParameter('select'))
        ) {
            return true;
        }

        return $regardSelectMode;
    }
private function regardSelectMode ( EnvironmentInterface $ environment ) { $ inputProvider = $ environment -> getInputProvider ( ) ; $ regardSelectMode = false ; \ array_map ( function ( $ value ) use ( $ inputProvider , & $ regardSelectMode ) { if ( ! $ inputProvider -> hasValue ( $ value ) ) { return false ; } $ regardSelectMode = true ; return true ; } , [ 'edit_save' , 'edit_saveNback' , 'override_save' , 'override_saveNback' , 'delete' , 'copy' , 'cut' ] ) ; if ( ( 'auto' === $ inputProvider -> getValue ( 'SUBMIT_TYPE' ) ) && ( 'edit' === $ inputProvider -> getParameter ( 'select' ) ) ) { return true ; } return $ regardSelectMode ; }
Determine regard select mode.

@param EnvironmentInterface $environment The environment.

@return bool
Determine regard select mode .