src/Sulu/Component/DocumentManager/DocumentRegistry.php
public function getDocumentForNode(NodeInterface $node, $locale)
    {
        $identifier = $node->getIdentifier();
        $this->assertNodeExists($identifier);

        return $this->nodeDocumentMap[$this->getNodeLocaleKey($node->getIdentifier(), $locale)];
    }
public function getDocumentForNode(NodeInterface $node, $locale)
    {
        $identifier = $node->getIdentifier();
        $this->assertNodeExists($identifier);

        return $this->nodeDocumentMap[$this->getNodeLocaleKey($node->getIdentifier(), $locale)];
    }
public function getDocumentForNode ( NodeInterface $ node , $ locale ) { $ identifier = $ node -> getIdentifier ( ) ; $ this -> assertNodeExists ( $ identifier ) ; return $ this -> nodeDocumentMap [ $ this -> getNodeLocaleKey ( $ node -> getIdentifier ( ) , $ locale ) ] ; }
Return the document for the given managed node.

@param NodeInterface $node
@param string $locale

@return mixed If the node is not managed
Return the document for the given managed node .