src/Contao/View/Contao2BackendView/Controller/ClipboardController.php
protected function isAddingAllowed(EnvironmentInterface $environment)
    {
        $inputProvider = $environment->getInputProvider();

        // No manual sorting property defined, no need to add it to the clipboard.
        // Or we already have an after or into attribute, a handler can pick it up.
        return (!ViewHelpers::getManualSortingProperty($environment)
                || $inputProvider->hasParameter('after')
                || $inputProvider->hasParameter('into')
        );
    }
protected function isAddingAllowed(EnvironmentInterface $environment)
    {
        $inputProvider = $environment->getInputProvider();

        // No manual sorting property defined, no need to add it to the clipboard.
        // Or we already have an after or into attribute, a handler can pick it up.
        return (!ViewHelpers::getManualSortingProperty($environment)
                || $inputProvider->hasParameter('after')
                || $inputProvider->hasParameter('into')
        );
    }
protected function isAddingAllowed ( EnvironmentInterface $ environment ) { $ inputProvider = $ environment -> getInputProvider ( ) ; // No manual sorting property defined, no need to add it to the clipboard. // Or we already have an after or into attribute, a handler can pick it up. return ( ! ViewHelpers :: getManualSortingProperty ( $ environment ) || $ inputProvider -> hasParameter ( 'after' ) || $ inputProvider -> hasParameter ( 'into' ) ) ; }
Is adding to the clipboard allowed.

@param EnvironmentInterface $environment The environment.

@return bool
Is adding to the clipboard allowed .