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

            $this->pasteAfter($this->modelCollector->getModel($after), $models, $manualSorting);

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

            $this->pasteAfter($this->modelCollector->getModel($after), $models, $manualSorting);

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

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

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