src/Sulu/Component/DocumentManager/DocumentRegistry.php
public function getNodeForDocument($document)
    {
        $oid = $this->getObjectIdentifier($document);
        $this->assertDocumentExists($document);

        return $this->nodeMap[$this->documentNodeMap[$oid]];
    }
public function getNodeForDocument($document)
    {
        $oid = $this->getObjectIdentifier($document);
        $this->assertDocumentExists($document);

        return $this->nodeMap[$this->documentNodeMap[$oid]];
    }
public function getNodeForDocument ( $ document ) { $ oid = $ this -> getObjectIdentifier ( $ document ) ; $ this -> assertDocumentExists ( $ document ) ; return $ this -> nodeMap [ $ this -> documentNodeMap [ $ oid ] ] ; }
Return the node for the given managed document.

@param object $document

@throws \RuntimeException If the node is not managed

@return NodeInterface
Return the node for the given managed document .