Neos.Neos/Classes/Fusion/DimensionsMenuItemsImplementation.php
protected function getNodeInDimensions(array $dimensions, array $targetDimensions)
    {
        $q = new FlowQuery([$this->currentNode]);

        return $q->context([
            'dimensions' => $dimensions,
            'targetDimensions' => $targetDimensions
        ])->get(0);
    }
protected function getNodeInDimensions(array $dimensions, array $targetDimensions)
    {
        $q = new FlowQuery([$this->currentNode]);

        return $q->context([
            'dimensions' => $dimensions,
            'targetDimensions' => $targetDimensions
        ])->get(0);
    }
protected function getNodeInDimensions ( array $ dimensions , array $ targetDimensions ) { $ q = new FlowQuery ( [ $ this -> currentNode ] ) ; return $ q -> context ( [ 'dimensions' => $ dimensions , 'targetDimensions' => $ targetDimensions ] ) -> get ( 0 ) ; }
Get the current node in the given dimensions.
If it doesn't exist the method returns null.

@param array $dimensions
@param array $targetDimensions
@return NodeInterface|null
Get the current node in the given dimensions . If it doesn t exist the method returns null .