Jarves\Admin\ObjectCrud::moveItem PHP Method

moveItem() public method

public moveItem ( $pk, $targetPk, $position = 'first', $targetObjectKey = '' )
    public function moveItem($pk, $targetPk, $position = 'first', $targetObjectKey = '')
    {
        $storageController = $this->objects->getStorageController($this->getObject());
        $sourcePk = $this->objects->normalizePk($this->getObject(), $pk);
        $targetPk = $this->objects->normalizePk($targetObjectKey ?: $this->getObject(), $targetPk);
        return $storageController->move($sourcePk, $targetPk, $position, $targetObjectKey);
    }
ObjectCrud