Neos.ContentRepository/Classes/Domain/Repository/NodeDataRepository.php
public function findShadowNodeByPath($path, Workspace $workspace, array $dimensions = null)
    {
        $workspaces = $this->collectWorkspaceAndAllBaseWorkspaces($workspace);
        $nodes = $this->findRawNodesByPath($path, $workspace, $dimensions, true);
        $dimensions = $dimensions === null ? [] : $dimensions;
        $foundNodes = $this->reduceNodeVariantsByWorkspacesAndDimensions($nodes, $workspaces, $dimensions);
        $foundNodes = $this->onlyRemovedNodes($foundNodes);

        if ($foundNodes !== []) {
            return reset($foundNodes);
        }

        return null;
    }
public function findShadowNodeByPath($path, Workspace $workspace, array $dimensions = null)
    {
        $workspaces = $this->collectWorkspaceAndAllBaseWorkspaces($workspace);
        $nodes = $this->findRawNodesByPath($path, $workspace, $dimensions, true);
        $dimensions = $dimensions === null ? [] : $dimensions;
        $foundNodes = $this->reduceNodeVariantsByWorkspacesAndDimensions($nodes, $workspaces, $dimensions);
        $foundNodes = $this->onlyRemovedNodes($foundNodes);

        if ($foundNodes !== []) {
            return reset($foundNodes);
        }

        return null;
    }
public function findShadowNodeByPath ( $ path , Workspace $ workspace , array $ dimensions = null ) { $ workspaces = $ this -> collectWorkspaceAndAllBaseWorkspaces ( $ workspace ) ; $ nodes = $ this -> findRawNodesByPath ( $ path , $ workspace , $ dimensions , true ) ; $ dimensions = $ dimensions === null ? [ ] : $ dimensions ; $ foundNodes = $ this -> reduceNodeVariantsByWorkspacesAndDimensions ( $ nodes , $ workspaces , $ dimensions ) ; $ foundNodes = $ this -> onlyRemovedNodes ( $ foundNodes ) ; if ( $ foundNodes !== [ ] ) { return reset ( $ foundNodes ) ; } return null ; }
Find a shadow node by exact path

@param string $path
@param Workspace $workspace
@param array|null $dimensions
@return NodeData|null
Find a shadow node by exact path