src/Sulu/Component/DocumentManager/Subscriber/Behavior/Path/AbstractFilingSubscriber.php
private function createNode(NodeInterface $node, $pathSegment, $uuid)
    {
        if ($node->hasNode($pathSegment)) {
            return $node->getNode($pathSegment);
        }

        $node = $node->addNode($pathSegment);
        $node->addMixin('mix:referenceable');
        $node->setProperty('jcr:uuid', $uuid);

        return $node;
    }
private function createNode(NodeInterface $node, $pathSegment, $uuid)
    {
        if ($node->hasNode($pathSegment)) {
            return $node->getNode($pathSegment);
        }

        $node = $node->addNode($pathSegment);
        $node->addMixin('mix:referenceable');
        $node->setProperty('jcr:uuid', $uuid);

        return $node;
    }
private function createNode ( NodeInterface $ node , $ pathSegment , $ uuid ) { if ( $ node -> hasNode ( $ pathSegment ) ) { return $ node -> getNode ( $ pathSegment ) ; } $ node = $ node -> addNode ( $ pathSegment ) ; $ node -> addMixin ( 'mix:referenceable' ) ; $ node -> setProperty ( 'jcr:uuid' , $ uuid ) ; return $ node ; }
Adds a node with the given path segment as a node name to the given node.

@param NodeInterface $node
@param string $pathSegment
@param string $uuid

@return mixed
Adds a node with the given path segment as a node name to the given node .