src/Contao/View/Contao2BackendView/ActionHandler/SelectHandler.php
private function getSubmitAction(EnvironmentInterface $environment, $regardSelectMode = false)
    {
        if (!$regardSelectMode
            && $environment->getInputProvider()->hasParameter('select')
            && !$environment->getInputProvider()->hasValue('properties')
        ) {
            return 'select' . \ucfirst($environment->getInputProvider()->getParameter('select'));
        }

        if (null !== ($action = $this->determineAction($environment))) {
            return $action;
        }

        if ($regardSelectMode) {
            return $environment->getInputProvider()->getParameter('mode') ?: null;
        }

        return $environment->getInputProvider()->getParameter('select') ?
            'select' . \ucfirst($environment->getInputProvider()->getParameter('select')) : null;
    }
private function getSubmitAction(EnvironmentInterface $environment, $regardSelectMode = false)
    {
        if (!$regardSelectMode
            && $environment->getInputProvider()->hasParameter('select')
            && !$environment->getInputProvider()->hasValue('properties')
        ) {
            return 'select' . \ucfirst($environment->getInputProvider()->getParameter('select'));
        }

        if (null !== ($action = $this->determineAction($environment))) {
            return $action;
        }

        if ($regardSelectMode) {
            return $environment->getInputProvider()->getParameter('mode') ?: null;
        }

        return $environment->getInputProvider()->getParameter('select') ?
            'select' . \ucfirst($environment->getInputProvider()->getParameter('select')) : null;
    }
private function getSubmitAction ( EnvironmentInterface $ environment , $ regardSelectMode = false ) { if ( ! $ regardSelectMode && $ environment -> getInputProvider ( ) -> hasParameter ( 'select' ) && ! $ environment -> getInputProvider ( ) -> hasValue ( 'properties' ) ) { return 'select' . \ ucfirst ( $ environment -> getInputProvider ( ) -> getParameter ( 'select' ) ) ; } if ( null !== ( $ action = $ this -> determineAction ( $ environment ) ) ) { return $ action ; } if ( $ regardSelectMode ) { return $ environment -> getInputProvider ( ) -> getParameter ( 'mode' ) ? : null ; } return $ environment -> getInputProvider ( ) -> getParameter ( 'select' ) ? 'select' . \ ucfirst ( $ environment -> getInputProvider ( ) -> getParameter ( 'select' ) ) : null ; }
Get the submit action name.

@param EnvironmentInterface $environment      The environment.
@param boolean              $regardSelectMode Determine regard the select mode parameter.

@return string
Get the submit action name .