src/Controller/DefaultController.php
private function createModelCollectionFromActions(array $actions, array &$items)
    {
        $models = new DefaultCollection();
        foreach ($actions as $action) {
            $models->push($action['model']);
            $items[] = $action['item'];
        }

        return $models;
    }
private function createModelCollectionFromActions(array $actions, array &$items)
    {
        $models = new DefaultCollection();
        foreach ($actions as $action) {
            $models->push($action['model']);
            $items[] = $action['item'];
        }

        return $models;
    }
private function createModelCollectionFromActions ( array $ actions , array & $ items ) { $ models = new DefaultCollection ( ) ; foreach ( $ actions as $ action ) { $ models -> push ( $ action [ 'model' ] ) ; $ items [ ] = $ action [ 'item' ] ; } return $ models ; }
Create the model collection from the internal models in the action collection.

@param array $actions The actions collection.
@param array $items   Write-back clipboard items.

@return DefaultCollection
Create the model collection from the internal models in the action collection .