eZ\Publish\Core\Persistence\Legacy\Content\Location\Handler::move PHP Method

move() public method

Performs a full move of the location identified by $sourceId to a new destination, identified by $destinationParentId. Relations do not need to be updated, since they refer to Content. URLs are not touched.
public move ( mixed $sourceId, mixed $destinationParentId ) : boolean
$sourceId mixed
$destinationParentId mixed
return boolean
    public function move($sourceId, $destinationParentId)
    {
        $sourceNodeData = $this->locationGateway->getBasicNodeData($sourceId);
        $destinationNodeData = $this->locationGateway->getBasicNodeData($destinationParentId);
        $this->locationGateway->moveSubtreeNodes($sourceNodeData, $destinationNodeData);
        $this->locationGateway->updateNodeAssignment($sourceNodeData['contentobject_id'], $sourceNodeData['parent_node_id'], $destinationParentId, Gateway::NODE_ASSIGNMENT_OP_CODE_MOVE);
    }