Neos\Neos\Fusion\DimensionsMenuImplementation::getNodeInDimensions PHP Method

getNodeInDimensions() protected method

If it doesn't exist the method returns null.
protected getNodeInDimensions ( array $dimensions, array $targetDimensions ) : Neos\ContentRepository\Domain\Model\NodeInterface | null
$dimensions array
$targetDimensions array
return Neos\ContentRepository\Domain\Model\NodeInterface | null
    protected function getNodeInDimensions(array $dimensions, array $targetDimensions)
    {
        $q = new FlowQuery([$this->currentNode]);
        return $q->context(['dimensions' => $dimensions, 'targetDimensions' => $targetDimensions])->get(0);
    }