src/Contao/View/Contao2BackendView/ActionHandler/PasteHandler.php
private function isSimpleCreatePaste(ClipboardInterface $clipboard, $provider)
    {
        $all = $clipboard->fetch(new Filter());

        return ((1 === \count($all))
                && $all[0]->isCreate()
                && (null === $all[0]->getModelId())
                && $all[0]->getDataProviderName() === $provider);
    }
private function isSimpleCreatePaste(ClipboardInterface $clipboard, $provider)
    {
        $all = $clipboard->fetch(new Filter());

        return ((1 === \count($all))
                && $all[0]->isCreate()
                && (null === $all[0]->getModelId())
                && $all[0]->getDataProviderName() === $provider);
    }
private function isSimpleCreatePaste ( ClipboardInterface $ clipboard , $ provider ) { $ all = $ clipboard -> fetch ( new Filter ( ) ) ; return ( ( 1 === \ count ( $ all ) ) && $ all [ 0 ] -> isCreate ( ) && ( null === $ all [ 0 ] -> getModelId ( ) ) && $ all [ 0 ] -> getDataProviderName ( ) === $ provider ) ; }
Test if the current paste action is a simple paste for the passed data provider.

@param ClipboardInterface $clipboard The clipboard instance.
@param string             $provider  The provider name.

@return bool
Test if the current paste action is a simple paste for the passed data provider .