protected function delete($step)
    {
        $itemsCollection = $this->matchItems('delete', $step);

        $this->setReferences($itemsCollection, $step);

        $trashService = $this->repository->getTrashService();
        foreach ($itemsCollection as $key => $item) {
            $trashService->deleteTrashItem($item);
        }

        $this->setReferences($itemsCollection, $step);

        return $itemsCollection;
    }
protected function delete($step)
    {
        $itemsCollection = $this->matchItems('delete', $step);

        $this->setReferences($itemsCollection, $step);

        $trashService = $this->repository->getTrashService();
        foreach ($itemsCollection as $key => $item) {
            $trashService->deleteTrashItem($item);
        }

        $this->setReferences($itemsCollection, $step);

        return $itemsCollection;
    }
protected function delete ( $ step ) { $ itemsCollection = $ this -> matchItems ( 'delete' , $ step ) ; $ this -> setReferences ( $ itemsCollection , $ step ) ; $ trashService = $ this -> repository -> getTrashService ( ) ; foreach ( $ itemsCollection as $ key => $ item ) { $ trashService -> deleteTrashItem ( $ item ) ; } $ this -> setReferences ( $ itemsCollection , $ step ) ; return $ itemsCollection ; }
Handles the trash-delete migration action
Handles the trash - delete migration action