Neos.ContentRepository/Classes/Domain/Model/Workspace.php
protected function findCorrespondingNodeDataInTargetWorkspace(NodeInterface $node, Workspace $targetWorkspace)
    {
        $nodeData = $this->nodeDataRepository->findOneByIdentifier($node->getIdentifier(), $targetWorkspace, $node->getDimensions(), true);
        if ($nodeData === null || $nodeData->getWorkspace() !== $targetWorkspace) {
            return null;
        }
        return $nodeData;
    }
protected function findCorrespondingNodeDataInTargetWorkspace(NodeInterface $node, Workspace $targetWorkspace)
    {
        $nodeData = $this->nodeDataRepository->findOneByIdentifier($node->getIdentifier(), $targetWorkspace, $node->getDimensions(), true);
        if ($nodeData === null || $nodeData->getWorkspace() !== $targetWorkspace) {
            return null;
        }
        return $nodeData;
    }
protected function findCorrespondingNodeDataInTargetWorkspace ( NodeInterface $ node , Workspace $ targetWorkspace ) { $ nodeData = $ this -> nodeDataRepository -> findOneByIdentifier ( $ node -> getIdentifier ( ) , $ targetWorkspace , $ node -> getDimensions ( ) , true ) ; if ( $ nodeData === null || $ nodeData -> getWorkspace ( ) !== $ targetWorkspace ) { return null ; } return $ nodeData ; }
Returns the NodeData instance with the given identifier from the target workspace.
If no NodeData instance is found in that target workspace, null is returned.

@param NodeInterface $node The reference node to find a corresponding variant for
@param Workspace $targetWorkspace The target workspace to look in
@return NodeData Either a regular node, a shadow node or null
Returns the NodeData instance with the given identifier from the target workspace . If no NodeData instance is found in that target workspace null is returned .