src/Contao/View/Contao2BackendView/ActionHandler/ToggleHandler.php
private function determineNewState(InputProviderInterface $inputProvider, $isInverse)
    {
        $state = 1 === (int) $inputProvider->getParameter('state');

        if ($isInverse) {
            return $state ? '' : '1';
        }

        return $state ? '1' : '';
    }
private function determineNewState(InputProviderInterface $inputProvider, $isInverse)
    {
        $state = 1 === (int) $inputProvider->getParameter('state');

        if ($isInverse) {
            return $state ? '' : '1';
        }

        return $state ? '1' : '';
    }
private function determineNewState ( InputProviderInterface $ inputProvider , $ isInverse ) { $ state = 1 === ( int ) $ inputProvider -> getParameter ( 'state' ) ; if ( $ isInverse ) { return $ state ? '' : '1' ; } return $ state ? '1' : '' ; }
Determine the new state from the input data.

@param InputProviderInterface $inputProvider The input provider.
@param bool                   $isInverse     Flag if the state shall be evaluated as inverse toggler.

@return string
Determine the new state from the input data .