Neos\ContentRepository\Domain\Model\Node::setPathInternal PHP Метод

setPathInternal() защищенный Метод

This process is different depending on the fact if the node is an aggregate type or not.
protected setPathInternal ( string $destinationPath, boolean $recursiveCall ) : array
$destinationPath string the new node path
$recursiveCall boolean is this a recursive call
Результат array NodeVariants and old and new paths
    protected function setPathInternal($destinationPath, $recursiveCall)
    {
        if ($this->getNodeType()->isAggregate()) {
            return $this->setPathInternalForAggregate($destinationPath, $recursiveCall);
        }
        $originalPath = $this->nodeData->getPath();
        /** @var Node $childNode */
        foreach ($this->getChildNodes() as $childNode) {
            $childNode->setPath(NodePaths::addNodePathSegment($destinationPath, $childNode->getName()), false);
        }
        $this->moveNodeToDestinationPath($this, $destinationPath);
        return [[$this, $originalPath, $this->getNodeData()->getPath(), $recursiveCall]];
    }
Node