src/Contao/View/Contao2BackendView/ActionHandler/PasteHandler.php
private function needTreeModeShowAll(BasicDefinitionInterface $definition, InputProviderInterface $input)
    {
        if (BasicDefinitionInterface::MODE_HIERARCHICAL !== $definition->getMode()) {
            return false;
        }

        // If destination is not known, perform showAll.
        if ($input->hasParameter('after') || $input->hasParameter('into')) {
            return false;
        }

        return true;
    }
private function needTreeModeShowAll(BasicDefinitionInterface $definition, InputProviderInterface $input)
    {
        if (BasicDefinitionInterface::MODE_HIERARCHICAL !== $definition->getMode()) {
            return false;
        }

        // If destination is not known, perform showAll.
        if ($input->hasParameter('after') || $input->hasParameter('into')) {
            return false;
        }

        return true;
    }
private function needTreeModeShowAll ( BasicDefinitionInterface $ definition , InputProviderInterface $ input ) { if ( BasicDefinitionInterface :: MODE_HIERARCHICAL !== $ definition -> getMode ( ) ) { return false ; } // If destination is not known, perform showAll. if ( $ input -> hasParameter ( 'after' ) || $ input -> hasParameter ( 'into' ) ) { return false ; } return true ; }
Check if paste into or after parameter is present, if not, perform showAll in tree mode.

This is needed, as the destination is otherwise undefined.

@param BasicDefinitionInterface $definition The current definition.
@param InputProviderInterface   $input      The input provider.

@return bool
Check if paste into or after parameter is present if not perform showAll in tree mode .