Neos\Neos\TypoScript\MenuImplementation::findMenuStartingPoint PHP Method

findMenuStartingPoint() protected method

If entryLevel is configured this will be taken into account as well.
protected findMenuStartingPoint ( ) : Neos\ContentRepository\Domain\Model\NodeInterface
return Neos\ContentRepository\Domain\Model\NodeInterface
    protected function findMenuStartingPoint()
    {
        $typoScriptContext = $this->tsRuntime->getCurrentContext();
        $startingPoint = $this->getStartingPoint();
        if (!isset($typoScriptContext['node']) && !$startingPoint) {
            throw new TypoScriptException('You must either set a "startingPoint" for the menu or "node" must be set in the TypoScript context.', 1369596980);
        }
        $startingPoint = $startingPoint ?: $typoScriptContext['node'];
        $entryParentNode = $this->findParentNodeInBreadcrumbPathByLevel($this->getEntryLevel(), $startingPoint);
        return $entryParentNode;
    }