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;
}