src/Controller/DefaultController.php
private function processPasteInto(CollectionInterface $models, ModelIdInterface $into = null)
    {
        if ($into && $models->count() && $into->getId()) {
            $manualSorting = ViewHelpers::getManualSortingProperty($this->getEnvironment());

            $this->pasteInto($this->modelCollector->getModel($into), $models, $manualSorting);

            $this->triggerPostPasteModel($models);
            $this->clearModelCollection($models);
        }
    }
private function processPasteInto(CollectionInterface $models, ModelIdInterface $into = null)
    {
        if ($into && $models->count() && $into->getId()) {
            $manualSorting = ViewHelpers::getManualSortingProperty($this->getEnvironment());

            $this->pasteInto($this->modelCollector->getModel($into), $models, $manualSorting);

            $this->triggerPostPasteModel($models);
            $this->clearModelCollection($models);
        }
    }
private function processPasteInto ( CollectionInterface $ models , ModelIdInterface $ into = null ) { if ( $ into && $ models -> count ( ) && $ into -> getId ( ) ) { $ manualSorting = ViewHelpers :: getManualSortingProperty ( $ this -> getEnvironment ( ) ) ; $ this -> pasteInto ( $ this -> modelCollector -> getModel ( $ into ) , $ models , $ manualSorting ) ; $ this -> triggerPostPasteModel ( $ models ) ; $ this -> clearModelCollection ( $ models ) ; } }
Process paste the collection of models into the a model.

@param CollectionInterface $models The collection of models.
@param ModelIdInterface    $into   The paste into model.

@return void
Process paste the collection of models into the a model .