src/Contao/View/Contao2BackendView/ActionHandler/MultipleHandler/PasteAllHandler.php
protected function getSubClipboardItems(array $clipboardItems, CollectionInterface $collection)
    {
        $subClipboardItems = [];

        $modelIds = $collection->getModelIds();
        foreach ($clipboardItems as $clipboardItem) {
            if (!\in_array($clipboardItem->getModelId()->getId(), $modelIds)) {
                continue;
            }

            $subClipboardItems[] = $clipboardItem;
        }

        return $subClipboardItems;
    }
protected function getSubClipboardItems(array $clipboardItems, CollectionInterface $collection)
    {
        $subClipboardItems = [];

        $modelIds = $collection->getModelIds();
        foreach ($clipboardItems as $clipboardItem) {
            if (!\in_array($clipboardItem->getModelId()->getId(), $modelIds)) {
                continue;
            }

            $subClipboardItems[] = $clipboardItem;
        }

        return $subClipboardItems;
    }
protected function getSubClipboardItems ( array $ clipboardItems , CollectionInterface $ collection ) { $ subClipboardItems = [ ] ; $ modelIds = $ collection -> getModelIds ( ) ; foreach ( $ clipboardItems as $ clipboardItem ) { if ( ! \ in_array ( $ clipboardItem -> getModelId ( ) -> getId ( ) , $ modelIds ) ) { continue ; } $ subClipboardItems [ ] = $ clipboardItem ; } return $ subClipboardItems ; }
Get the sub items from the clipboard.

@param array               $clipboardItems The clipboard items.
@param CollectionInterface $collection     The collection.

@return array
Get the sub items from the clipboard .