Jackalope\ObjectManager::moveNodeImmediately PHP Method

moveNodeImmediately() public method

Implement the workspace move method. It is dispatched to transport immediately.
See also: Workspace::move()
public moveNodeImmediately ( string $srcAbsPath, string $destAbsPath )
$srcAbsPath string the path of the node to be moved.
$destAbsPath string the location to which the node at srcAbsPath is to be moved.
    public function moveNodeImmediately($srcAbsPath, $destAbsPath)
    {
        if (!$this->transport instanceof WritingInterface) {
            throw new UnsupportedRepositoryOperationException('Transport does not support writing');
        }
        $srcAbsPath = PathHelper::normalizePath($srcAbsPath);
        $destAbsPath = PathHelper::normalizePath($destAbsPath, true);
        $this->transport->moveNodeImmediately($srcAbsPath, $destAbsPath, true);
        // should throw the right exceptions
        $this->rewriteItemPaths($srcAbsPath, $destAbsPath);
        // update local cache
    }