Neos.ContentRepository/Classes/Domain/Repository/NodeDataRepository.php
public function findOneByPathInContext($path, Context $context)
    {
        $node = $this->findOneByPath($path, $context->getWorkspace(), $context->getDimensions(), ($context->isRemovedContentShown() ? null : false));
        if ($node !== null) {
            $node = $this->nodeFactory->createFromNodeData($node, $context);
        }

        return $node;
    }
public function findOneByPathInContext($path, Context $context)
    {
        $node = $this->findOneByPath($path, $context->getWorkspace(), $context->getDimensions(), ($context->isRemovedContentShown() ? null : false));
        if ($node !== null) {
            $node = $this->nodeFactory->createFromNodeData($node, $context);
        }

        return $node;
    }
public function findOneByPathInContext ( $ path , Context $ context ) { $ node = $ this -> findOneByPath ( $ path , $ context -> getWorkspace ( ) , $ context -> getDimensions ( ) , ( $ context -> isRemovedContentShown ( ) ? null : false ) ) ; if ( $ node !== null ) { $ node = $ this -> nodeFactory -> createFromNodeData ( $ node , $ context ) ; } return $ node ; }
Finds a node by its path and context.

If the node does not exist in the specified context's workspace, this function will
try to find one with the given path in one of the base workspaces (if any).

Examples for valid paths:

/          the root node
/foo       node "foo" on the first level
/foo/bar   node "bar" on the second level
/foo/      first node on second level, below "foo"

@param string $path Absolute path of the node
@param Context $context The containing context
@return NodeInterface|NULL The matching node if found, otherwise NULL
@throws \InvalidArgumentException
Finds a node by its path and context .