FluidTYPO3\Vhs\ViewHelpers\Menu\AbstractMenuViewHelper::initalizeSubmenuVariables PHP Method

initalizeSubmenuVariables() protected method

Note that the submenu VieWHelper is only capable of recycling one type of menu at a time - for example, a List menu nested inside a regular Menu ViewHelper will simply start another menu rendering completely separate from the parent menu.
    protected function initalizeSubmenuVariables()
    {
        if (false === $this->original) {
            return null;
        }
        $variables = $this->templateVariableContainer->getAll();
        $this->viewHelperVariableContainer->addOrUpdate('FluidTYPO3\\Vhs\\ViewHelpers\\Menu\\AbstractMenuViewHelper', 'parentInstance', $this);
        $this->viewHelperVariableContainer->addOrUpdate('FluidTYPO3\\Vhs\\ViewHelpers\\Menu\\AbstractMenuViewHelper', 'variables', $variables);
    }