public function nodeExistsInWorkspace(NodeInterface $node, Workspace $workspace)
    {
        $context = ['workspaceName' => $workspace->getName()];
        $flowQuery = new FlowQuery([$node]);

        return $flowQuery->context($context)->count() > 0;
    }
public function nodeExistsInWorkspace(NodeInterface $node, Workspace $workspace)
    {
        $context = ['workspaceName' => $workspace->getName()];
        $flowQuery = new FlowQuery([$node]);

        return $flowQuery->context($context)->count() > 0;
    }
public function nodeExistsInWorkspace ( NodeInterface $ node , Workspace $ workspace ) { $ context = [ 'workspaceName' => $ workspace -> getName ( ) ] ; $ flowQuery = new FlowQuery ( [ $ node ] ) ; return $ flowQuery -> context ( $ context ) -> count ( ) > 0 ; }
Checks if the given node exists in the given workspace

@param NodeInterface $node
@param Workspace $workspace
@return boolean
Checks if the given node exists in the given workspace