src/Contao/View/Contao2BackendView/ActionHandler/SelectHandler.php
private function determineAction(EnvironmentInterface $environment)
    {
        foreach (['delete', 'cut', 'copy', 'override', 'edit'] as $action) {
            if ($environment->getInputProvider()->hasValue($action)
                || $environment->getInputProvider()->hasValue($action . '_save')
                || $environment->getInputProvider()->hasValue($action . '_saveNback')
            ) {
                $environment->getInputProvider()->setParameter('mode', $action);

                return $action;
            }
        }

        return null;
    }
private function determineAction(EnvironmentInterface $environment)
    {
        foreach (['delete', 'cut', 'copy', 'override', 'edit'] as $action) {
            if ($environment->getInputProvider()->hasValue($action)
                || $environment->getInputProvider()->hasValue($action . '_save')
                || $environment->getInputProvider()->hasValue($action . '_saveNback')
            ) {
                $environment->getInputProvider()->setParameter('mode', $action);

                return $action;
            }
        }

        return null;
    }
private function determineAction ( EnvironmentInterface $ environment ) { foreach ( [ 'delete' , 'cut' , 'copy' , 'override' , 'edit' ] as $ action ) { if ( $ environment -> getInputProvider ( ) -> hasValue ( $ action ) || $ environment -> getInputProvider ( ) -> hasValue ( $ action . '_save' ) || $ environment -> getInputProvider ( ) -> hasValue ( $ action . '_saveNback' ) ) { $ environment -> getInputProvider ( ) -> setParameter ( 'mode' , $ action ) ; return $ action ; } } return null ; }
Determine the action.

@param EnvironmentInterface $environment The environment.

@return string|null
Determine the action .