framework/RedKiteCms/Content/BlockManager/BlockManagerMove.php
public function move($baseDir, array $options, $username)
    {
        $this->resolveMoveOptions($options);
        if (array_key_exists("targetSlot", $options)) {
            $options["slot"] = $options["targetSlot"];
            $block = $this->moveBlockToAnotherSlot($baseDir, $options, $username);

            return $block;
        }

        $options["slot"] = $options["sourceSlot"];
        $block = $this->moveBlockToSameSlot($baseDir, $options, $username);

        return $block;
    }
public function move($baseDir, array $options, $username)
    {
        $this->resolveMoveOptions($options);
        if (array_key_exists("targetSlot", $options)) {
            $options["slot"] = $options["targetSlot"];
            $block = $this->moveBlockToAnotherSlot($baseDir, $options, $username);

            return $block;
        }

        $options["slot"] = $options["sourceSlot"];
        $block = $this->moveBlockToSameSlot($baseDir, $options, $username);

        return $block;
    }
Moves the block

@param string $sourceDir
@param array $options
@param string $username

@return string The saved content