Neos.ContentRepository/Classes/Domain/Service/Context.php
public function getNodeByIdentifier($identifier)
    {
        $node = $this->firstLevelNodeCache->getByIdentifier($identifier);
        if ($node !== false) {
            return $node;
        }
        $nodeData = $this->nodeDataRepository->findOneByIdentifier($identifier, $this->getWorkspace(), $this->dimensions, $this->removedContentShown);
        if ($nodeData !== null) {
            $node = $this->nodeFactory->createFromNodeData($nodeData, $this);
        } else {
            $node = null;
        }
        $this->firstLevelNodeCache->setByIdentifier($identifier, $node);
        return $node;
    }
public function getNodeByIdentifier($identifier)
    {
        $node = $this->firstLevelNodeCache->getByIdentifier($identifier);
        if ($node !== false) {
            return $node;
        }
        $nodeData = $this->nodeDataRepository->findOneByIdentifier($identifier, $this->getWorkspace(), $this->dimensions, $this->removedContentShown);
        if ($nodeData !== null) {
            $node = $this->nodeFactory->createFromNodeData($nodeData, $this);
        } else {
            $node = null;
        }
        $this->firstLevelNodeCache->setByIdentifier($identifier, $node);
        return $node;
    }
public function getNodeByIdentifier ( $ identifier ) { $ node = $ this -> firstLevelNodeCache -> getByIdentifier ( $ identifier ) ; if ( $ node !== false ) { return $ node ; } $ nodeData = $ this -> nodeDataRepository -> findOneByIdentifier ( $ identifier , $ this -> getWorkspace ( ) , $ this -> dimensions , $ this -> removedContentShown ) ; if ( $ nodeData !== null ) { $ node = $ this -> nodeFactory -> createFromNodeData ( $ nodeData , $ this ) ; } else { $ node = null ; } $ this -> firstLevelNodeCache -> setByIdentifier ( $ identifier , $ node ) ; return $ node ; }
Get a node by identifier and this context

@param string $identifier The identifier of a node
@return NodeInterface The node with the given identifier or NULL if no such node exists
Get a node by identifier and this context