src/Contao/View/Contao2BackendView/ActionHandler/MultipleHandler/PasteAllHandler.php
protected function getClipboardItems(EnvironmentInterface $environment)
    {
        $basicDefinition = $environment->getDataDefinition()->getBasicDefinition();

        $filter = new Filter();
        $filter->andModelIsFromProvider($basicDefinition->getDataProvider());
        if ($basicDefinition->getParentDataProvider()) {
            $filter->andParentIsFromProvider($basicDefinition->getParentDataProvider());
        } else {
            $filter->andHasNoParent();
        }

        return $environment->getClipboard()->fetch($filter);
    }
protected function getClipboardItems(EnvironmentInterface $environment)
    {
        $basicDefinition = $environment->getDataDefinition()->getBasicDefinition();

        $filter = new Filter();
        $filter->andModelIsFromProvider($basicDefinition->getDataProvider());
        if ($basicDefinition->getParentDataProvider()) {
            $filter->andParentIsFromProvider($basicDefinition->getParentDataProvider());
        } else {
            $filter->andHasNoParent();
        }

        return $environment->getClipboard()->fetch($filter);
    }
protected function getClipboardItems ( EnvironmentInterface $ environment ) { $ basicDefinition = $ environment -> getDataDefinition ( ) -> getBasicDefinition ( ) ; $ filter = new Filter ( ) ; $ filter -> andModelIsFromProvider ( $ basicDefinition -> getDataProvider ( ) ) ; if ( $ basicDefinition -> getParentDataProvider ( ) ) { $ filter -> andParentIsFromProvider ( $ basicDefinition -> getParentDataProvider ( ) ) ; } else { $ filter -> andHasNoParent ( ) ; } return $ environment -> getClipboard ( ) -> fetch ( $ filter ) ; }
Get the items from the clipboard.

@param EnvironmentInterface $environment The environment.

@return array
Get the items from the clipboard .